flatMap<C> method

  1. @override
Either<L, C> flatMap<C>(
  1. covariant Either<L, C> f(
    1. R a
    )
)
override

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 bind.

Implementation

@override
Either<L, C> flatMap<C>(covariant Either<L, C> Function(R a) f) =>
    Left<L, C>(_value);