separateEither

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

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

Receiver

Iterable of Validated

Return

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


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

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

Receiver

Option of Either

Return

a tuple containing Option of Either.Left and another Option of its Either.Right value.


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.