sequenceList<E, A> static method

Either<E, List<A>> sequenceList<E, A>(
  1. List<Either<E, A>> list
)

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

static Either<E, List<A>> sequenceList<E, A>(
  List<Either<E, A>> list,
) =>
    traverseList(list, identity);