sequenceList<A> static method
Convert a List<Option<A>>
to a single Option<List<A>>
.
If any of the Option in the List
is None, then the result is None.
Implementation
static Option<List<A>> sequenceList<A>(
List<Option<A>> list,
) =>
traverseList(list, identity);