map<R, A, B> function

ReaderTask<R, B> Function(ReaderTask<R, A>) map<R, A, B>(
  1. B f(
    1. A a
    )
)

map transforms the previous computation result using the given function.

Implementation

ReaderTask<R, B> Function(ReaderTask<R, A>) map<R, A, B>(
  B Function(A a) f,
) =>
    (fa) => ReaderTask(fa.call.compose(T.map(f)));