mapLeft<L1> method

Either<L1, R> mapLeft<L1>(
  1. L1 f(
    1. L
    )
)

Implementation

Either<L1, R> mapLeft<L1>(L1 Function(L) f) => fold(
      (l) => Either.left(f(l)),
      (r) => Either.right(r),
    );