bind<R2> method

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

Used to chain multiple functions that return a Either.

You can extract the value of every Right in the chain without handling all possible missing cases. If any of the functions in the chain returns Left, the result is Left.

Same as flatMap.


Either<L, R2> bind<R2>(Either<L, R2> Function(R r) f) => flatMap(f);