none<T, R> function

Maybe<R> none <T, R>(
  1. Maybe<T> self,
  2. R none(
      )
    )

    When it not has Value Return Some(none(it))

    otherwise return None

    Implementation

    Maybe<R> none<T, R>(Maybe<T> self, R Function() none) {
      if (self is None) {
        if (none != null) return Some(none());
      }
      return None();
    }