flatMap<C, L, R1, R2> function

ReaderTaskEither<C, L, R2> Function(ReaderTaskEither<C, L, R1>) flatMap<C, L, R1, R2>(
  1. ReaderTaskEither<C, L, R2> f(
    1. R1 a
    )
)

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

Implementation

ReaderTaskEither<C, L, R2> Function(ReaderTaskEither<C, L, R1>)
    flatMap<C, L, R1, R2>(
  ReaderTaskEither<C, L, R2> Function(R1 a) f,
) =>
        (fa) => ReaderTaskEither((r) => fa(r).p(TE.flatMap((a) => f(a)(r))));