flatMapFirst<C, L, R> function

ReaderTaskEither<C, L, R> Function(ReaderTaskEither<C, L, R>) flatMapFirst<C, L, R>(
  1. ReaderTaskEither<C, L, dynamic> f(
    1. R a
    )
)

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

Implementation

ReaderTaskEither<C, L, R> Function(ReaderTaskEither<C, L, R>)
    flatMapFirst<C, L, R>(
  ReaderTaskEither<C, L, dynamic> Function(R a) f,
) =>
        flatMap((r) => f(r).chain(map((_) => r)));