mapRight<R2> method
Maps the right value, leaving the left value unchanged.
Implementation
Either<L, R2> mapRight<R2>(R2 Function(R right) combiner) {
return fold(
(left) => Left<L, R2>(left),
(right) => Right<L, R2>(combiner(right)),
);
}