traverseIOEitherWithIndex<E, B> method

IOEither<E, List<B>> traverseIOEitherWithIndex<E, B>(
  1. IOEither<E, B> f(
    1. T a,
    2. int i
    )
)

Map each element in the list to a IOEither using the function f, and collect the result in an IOEither<E, List<B>>.

Implementation

IOEither<E, List<B>> traverseIOEitherWithIndex<E, B>(
  IOEither<E, B> Function(T a, int i) f,
) =>
    IOEither.traverseListWithIndex(toList(), f);