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

separateEither

fun <A, B> Sequence<Either<A, B>>.separateEither(): Pair<Sequence<A>, Sequence<B>>

Separate the inner Either values into the Either.Left and Either.Right.

Receiver Iterable of Validated

Return a tuple containing Sequence with Either.Left and another Sequence with its Either.Right values.

Do you like Arrow?

Arrow Org
<