mapEitherRight<S> method

Pipeline<T, Either<L, S>> mapEitherRight<S>(
  1. S f(
    1. R
    )
)

Implementation

Pipeline<T, Either<L, S>> mapEitherRight<S>(S Function(R) f) {
  return Pipeline<T, Either<L, S>>((T input) {
    return run(input).fold(
      Left.new,
      (r) => Right(f(r)),
    );
  });
}