EitherIterableUtils<A, B> extension

Utils for extracting Either values from an Iterable

on

Methods

lefts() Iterable<A>

Available on Iterable<Either<A, B>>, provided by the EitherIterableUtils extension

Extract the Left values
partitionEithers() List<List>

Available on Iterable<Either<A, B>>, provided by the EitherIterableUtils extension

Partition into 2 Lists, the first containing Left the values and the second containing the Right values.
rights() Iterable<B>

Available on Iterable<Either<A, B>>, provided by the EitherIterableUtils extension

Extract the Right values