traverseList<E, A, B> static method
Map each element in the list to a IOEither using the function f
,
and collect the result in an IOEither<E, List<B>>
.
Same as IOEither.traverseListWithIndex
but without index
in the map function.
Implementation
static IOEither<E, List<B>> traverseList<E, A, B>(
List<A> list,
IOEither<E, B> Function(A a) f,
) =>
traverseListWithIndex<E, A, B>(list, (a, _) => f(a));