then<U> method

Maybe<U>? then<U>(
  1. U f(
    1. T val
    )
)

Maps an Maybe

Implementation

Maybe<U> then<U>(U f(T val)) {
  if (this != null) return Some(f(this!.value));
  return None();
}