Method WhereSome
- Namespace
- SodaFlow.Functional
- Assembly
- SodaFlow.Functional.dll
WhereSome<T>(IEnumerable<Maybe<T>>?)
Returns the values from a sequence which have one, discarding the entries which do not.
[Pure]
public static IEnumerable<T> WhereSome<T>(this IEnumerable<Maybe<T>>? o)
Parameters
oIEnumerable<Maybe<T>>The sequence to filter. A null sequence counts as empty.
Returns
- IEnumerable<T>
The contained values, in order, with the empty entries left out.
Type Parameters
TThe type of the values in the sequence.
Remarks
Lazy, like the LINQ operators it is built from: the source is not enumerated until the result is.