tap<R, A> function

ReaderTask<R, A> Function(ReaderTask<R, A>) tap<R, A>(
  1. void f(
    1. A a
    )
)

tap transforms the previous computation result using the given function.

Implementation

ReaderTask<R, A> Function(ReaderTask<R, A>) tap<R, A>(
  void Function(A a) f,
) =>
    (fa) => ReaderTask(fa.call.compose(T.tap(f)));