orElse method
Returns this Option
if this Option
is Some<T>, otherwise calls fn
and returns the returned Option
.
See also:
Rust: Option::or_else()
Implementation
Option<T> orElse(Option<T> Function() fn) => switch (this) {
Some() => this,
None() => fn()
};