map method

Maybe<T> map(
  1. dynamic f
)

Implementation

Maybe<T> map(f) => _isNothing ? Maybe.nothing() : Maybe.some(f(_value));