map<R, T> method

Future<Option<R>> map<R, T>(
  1. R f(
    1. T t
    )
)

Implementation

Future<Option<R>> map<R, T>(R Function(T t) f) =>
    fold(() => None(), (v) => Some(f(v! as T)));