IterableOptionExt<T extends Object> extension

on

Properties

values Iterable<T>

Available on Iterable<Option<T>>, provided by the IterableOptionExt extension

Returns a new Iterable containing only the values from Some elements.
no setter

Methods

partition() OptionPartition<T>

Available on Iterable<Option<T>>, provided by the IterableOptionExt extension

Partitions the iterable into someParts and noneParts in a single pass.
sequenceList() Option<List<T>>

Available on Iterable<Option<T>>, provided by the IterableOptionExt extension

Turns an Iterable<Option<T>> into an Option<List<T>>. If all elements are Some, it returns a Some<List<T>>. If any element is a None, it returns None.
sequenceSet() Option<Set<T>>

Available on Iterable<Option<T>>, provided by the IterableOptionExt extension

Turns an Iterable<Option<T>> into an Option<Set<T>>. If all elements are Some, it returns a Some<Set<T>>. If any element is a None, it returns None.
whereNone() Iterable<None<T>>

Available on Iterable<Option<T>>, provided by the IterableOptionExt extension

Filters for None elements, returning an iterable of the None instances.
whereSome() Iterable<Some<T>>

Available on Iterable<Option<T>>, provided by the IterableOptionExt extension

Filters for Some elements, returning an iterable of the Some instances.