flatMapTuple2<C, L, R, R2> function
ReaderTaskEither<C, L, dynamic> Function(ReaderTaskEither<C, L, R> fa)
flatMapTuple2<C, L, R, R2>(
- ReaderTaskEither<
C, L, R2> f(- R value
A variant of flatMap that appends the result to a tuple.
Implementation
ReaderTaskEither<C, L, Tuple2<R, R2>> Function(ReaderTaskEither<C, L, R> fa)
flatMapTuple2<C, L, R, R2>(
ReaderTaskEither<C, L, R2> Function(R value) f,
) =>
flatMap((r) => f(r).p(map((r2) => tuple2(r, r2))));