map<A, B> function

TaskOption<B> Function(TaskOption<A> taskOption) map<A, B>(
  1. B f(
    1. A value
    )
)

Transforms a TaskOption value if it resolves to Some.

Implementation

TaskOption<B> Function(TaskOption<A> taskOption) map<A, B>(
  B Function(A value) f,
) =>
    (fa) => TaskOption(fa.p(T.map(O.map(f))));