map<L2, R2> abstract method

Either<L2, R2> map<L2, R2>(
  1. Map1<L, L2> leftFunction,
  2. Map1<R, R2> rightFunction
)

Transforms the left value with leftFunction or the right value with rightFunction. The resulting Either contains the transformed value of the corresponding function.

Implementation

Either<L2, R2> map<L2, R2>(
  Map1<L, L2> leftFunction,
  Map1<R, R2> rightFunction,
);