arrow-core-data / arrow.core / kotlin.sequences.Sequence / separateValidated

separateValidated

fun <A, B> Sequence<Validated<A, B>>.separateValidated(): Pair<Sequence<A>, Sequence<B>>

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.

Do you like Arrow?

Arrow Org
<