flatMap<R2> abstract method

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

Applies the function f to the value contained in Right, if it exists, and returns a new Either containing the result. If this is a Left, it is returned unchanged.

Implementation

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