IterableOptionExt<T extends Object> extension
Properties
Methods
-
partition(
) → OptionPartition< T> -
Available on Iterable<
Partitions the iterable intoOption< , provided by the IterableOptionExt extensionT> >someParts
andnoneParts
in a single pass. -
sequenceList(
) → Option< List< T> > -
Available on Iterable<
Turns anOption< , provided by the IterableOptionExt extensionT> >Iterable<Option<T>>
into anOption<List<T>>
. If all elements are Some, it returns aSome<List<T>>
. If any element is a None, it returns None. -
sequenceSet(
) → Option< Set< T> > -
Available on Iterable<
Turns anOption< , provided by the IterableOptionExt extensionT> >Iterable<Option<T>>
into anOption<Set<T>>
. If all elements are Some, it returns aSome<Set<T>>
. If any element is a None, it returns None. -
whereNone(
) → Iterable< None< T> > -
Available on Iterable<
Filters for None elements, returning an iterable of the None instances.Option< , provided by the IterableOptionExt extensionT> > -
whereSome(
) → Iterable< Some< T> > -
Available on Iterable<
Filters for Some elements, returning an iterable of the Some instances.Option< , provided by the IterableOptionExt extensionT> >