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