map<R, A, B> function

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

map transforms the previous computation result using the given function.

Implementation

Reader<R, B> Function(Reader<R, A>) map<R, A, B>(
  B Function(A a) f,
) =>
    (fa) => Reader((r) => f(fa(r)));