extend<Z> abstract method

Option<Z> extend<Z>(
  1. Z f(
    1. Option<T> t
    )
)

Change the value of Option from type T to type Z based on the value of Option<T> using function f.

Implementation

Option<Z> extend<Z>(Z Function(Option<T> t) f);