maybeFill method

Maybe<t> maybeFill(
  1. Maybe<t> other
)
inherited

In case this is None, return other, otherwise keep the current value.

Implementation

Maybe<T> maybeFill(Maybe<T> other) =>
    _self.visit<Maybe<T>>(just: (_) => _self, none: () => other);