traverseIO<B> method

IO<List<B>> traverseIO<B>(
  1. IO<B> f(
    1. T a
    )
)

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>> traverseIO<B>(
  IO<B> Function(T a) f,
) =>
    IO.traverseList(toList(), f);