control_flow/optional/optional library

Classes

Optional<T>

Functions

filter<A, B>(Predicate<A> filter) Optional<A> Function(Optional<A>)
flatMap<A, B>(Optional<B> flatMapper(A p1)) Optional<B> Function(Optional<A>)
map<A, B>(B mapper(A p1)) Optional<B> Function(Optional<A>)
of<T>(T value) Optional<T>