mapLeft<L2> method

  1. @override
Either<L2, R> mapLeft<L2>(
  1. L2 f(
    1. L left
    )
)
override

Maps the Left value using f, if present.

If this is a Right, the same successful value is returned unchanged.

Implementation

@override
Either<L2, R> mapLeft<L2>(L2 Function(L left) f) {
  return Right<L2, R>(value);
}