flatMap<R, A, B> function

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

Composes computations in sequence, using the return value from the previous computation.

Implementation

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