defaultValFn method
Set a default value when it is None(null
)
but more lazy
Implementation
Maybe<T> defaultValFn(T fn()) {
if (this == null) return Some(fn());
return this;
}
Set a default value when it is None(null
)
but more lazy
Maybe<T> defaultValFn(T fn()) {
if (this == null) return Some(fn());
return this;
}