tapLeft method

Either<L, R> tapLeft(
  1. void f(
    1. L left
    )
)

Runs f with the Left value, if present, and returns this Either.

Implementation

Either<L, R> tapLeft(void Function(L left) f) {
  if (isLeft()) {
    f(getLeft());
  }

  return this;
}