traverseIOOptionWithIndex<B> method

IOOption<List<B>> traverseIOOptionWithIndex<B>(
  1. IOOption<B> f(
    1. T a,
    2. int i
    )
)

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>> traverseIOOptionWithIndex<B>(
  IOOption<B> Function(T a, int i) f,
) =>
    IOOption.traverseListWithIndex(toList(), f);