bind<R> method

Option<R> bind<R>(
  1. Option<R> f(
    1. T t
    )
)

Implementation

Option<R> bind<R>(Option<R> Function(T t) f) =>
    fold(() => Option.none(), (some) => f(some));