tap<C, L, R> function

ReaderTaskEither<C, L, R> Function(ReaderTaskEither<C, L, R>) tap<C, L, R>(
  1. FutureOr<void> f(
    1. R value
    )
)

Run a side effect on a Right value. The side effect can optionally return a Future.

Implementation

ReaderTaskEither<C, L, R> Function(ReaderTaskEither<C, L, R>) tap<C, L, R>(
  FutureOr<void> Function(R value) f,
) =>
    (fa) => ReaderTaskEither(fa.call.compose(TE.tap(f)));