separate Validated
fun <A, B> Iterable<Validated<A, B>>.separateValidated(): Pair<List<A>, List<B>>
Content copied to clipboard
Separate the inner Validated values into the Validated.Invalid and Validated.Valid.
Receiver
Iterable of Validated
Return
a tuple containing List with Validated.Invalid and another List with its Validated.Valid values.
fun <A, B> Option<Validated<A, B>>.separateValidated(): Pair<Option<A>, Option<B>>
Content copied to clipboard
Separate the inner Validated value into the Validated.Invalid and Validated.Valid.
Receiver
Option of Either
Return
a tuple containing Option of Validated.Invalid and another Option of its Validated.Valid value.
fun <A, B> Sequence<Validated<A, B>>.separateValidated(): Pair<Sequence<A>, Sequence<B>>
Content copied to clipboard
Separate the inner Validated values into the Validated.Invalid and Validated.Valid.
Receiver
Iterable of Validated
Return
a tuple containing Sequence with Validated.Invalid and another Sequence with its Validated.Valid values.