sequence<A> function

TaskOption<IList<A>> sequence<A>(
  1. Iterable<TaskOption<A>> tasks
)

Implementation

TaskOption<IList<A>> sequence<A>(
  Iterable<TaskOption<A>> tasks,
) =>
    TaskOption(
      T.sequence(tasks.map((_) => _._task)).p(T.map(O.traverse(identity))),
    );