bind<RR> method

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

Concatena il risultato Either con un'altra funzione che ritorna un Either. Se Either contiene L, allora la funzione non viene chiamata (L รจ considerato in stato di errore) e ritorna semplicemente l'Either che contiene L

Implementation

Either<L, RR> bind<RR>(Either<L, RR> Function(R r) f) =>
    fold((l) => Left(l), (right) => f(right));