map<A, B> function

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

Implementation

ReaderTask<ENV, B> Function<ENV>(ReaderTask<ENV, A>) map<A, B>(
  B Function(A) f,
) =>
    <ENV>(rt) => (env) {
          final task = rt(env);
          return () async => f(await task());
        };