traverseIOWithIndex<B> method
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);