mapEitherBoth<L2, S> method
Implementation
Pipeline<T, Either<L2, S>> mapEitherBoth<L2, S>(
L2 Function(L) f1,
S Function(R) f2,
) {
return Pipeline<T, Either<L2, S>>((T input) {
return run(input).fold(
(l) => Left(f1(l)),
(r) => Right(f2(r)),
);
});
}