null library

Functions

defaultVal<T>(Maybe<T> self, T v) Some<T>
Set a default value when it is None
defaultValFn<T>(Maybe<T> self, T fn()) Some<T>
Set a default value when it is None [...]
none<T, R>(Maybe<T> self, R none()) Maybe<R>
When it not has Value Return Some(none(it)) [...]
some<T, R>(Maybe<T> self, R some(T val)) Maybe<R>
fMap [...]
when<T, R>(Maybe<T> self, {R some(T val), R none()}) Maybe<R>
Pattern matching [...]