flatMap<R2> method

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

Applies the given function f to the contained value, and flattens the result.

Used for chaining operations that return an Either.

Implementation

@override
Either<L, R2> flatMap<R2>(Either<L, R2> Function(R right) f) {
  return f(value);
}