traverseIOOption<B> method

IOOption<List<B>> traverseIOOption<B>(
  1. IOOption<B> f(
    1. T a
    )
)

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

Implementation

IOOption<List<B>> traverseIOOption<B>(
  IOOption<B> Function(T a) f,
) =>
    IOOption.traverseList(toList(), f);