maybe_iterables library

Functions

count<T>(Iterable<Maybe<T>> maybeList) int
Returns the number of elements with a value in maybeIterable.
filter<T>(Iterable<Maybe<T>> maybeIterable) Iterable<T>
Returns a new lazy Iterable with all elements with a value in maybeIterable. [...]
forEach<T>(Iterable<Maybe<T>> maybeIterable, void f(T element)) → void
Applies the function f to each element with a value of maybeIterable collection in iteration order.