defaultValFn method

Maybe<T>? defaultValFn(
  1. T fn()
)

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;
}