map<R2> abstract method

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

Transforms the value contained in Right using the given function f, returning a new Either with the transformed value.

If this is a Left, the same instance is returned unchanged.

Implementation

Either<L, R2> map<R2>(R2 Function(R right) f);