map<R2> method

Either<L, R2> map<R2>(
  1. R2 f(
    1. R r
    )
)

Implementation

Either<L, R2> map<R2>(R2 Function(R r) f) => fold(left, (R r) => right(f(r)));