traverseIOWithIndex<B> method

IO<List<B>> traverseIOWithIndex<B>(
  1. IO<B> f(
    1. T a,
    2. int i
    )
)

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

Implementation

IO<List<B>> traverseIOWithIndex<B>(
  IO<B> Function(T a, int i) f,
) =>
    IO.traverseListWithIndex(toList(), f);