sequenceEither method

Either<E, List<A>> sequenceEither()

Convert a List<Either<E, A>> to a single Either<E, List<A>>.

If any of the Either in the List is Left, then the result is Left.

Implementation

Either<E, List<A>> sequenceEither() => Either.sequenceList(toList());