whereSome method

Iterable<Some<T>> whereSome()

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

Implementation

Iterable<Some<T>> whereSome() =>
    where((e) => e.isSome()).map((e) => e.some().unwrap());