sequenceOption method

Option<List<T>> sequenceOption()

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

Option<List<T>> sequenceOption() => Option.sequenceList(toList());