tapLeft<L, R> function

TaskEither<L, R> Function(TaskEither<L, R> taskEither) tapLeft<L, R>(
  1. FutureOr<void> f(
    1. L value
    )
)

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

Implementation

TaskEither<L, R> Function(TaskEither<L, R> taskEither) tapLeft<L, R>(
  FutureOr<void> Function(L value) f,
) =>
    (fa) => TaskEither(fa.p(task.tap(either.fold(f, identity))));