chainEither<C> method

TaskEither<L, C> chainEither<C>(
  1. Either<L, C> f(
    1. R r
    )
)

Chain a function that takes the current value R inside this TaskEither and returns Either.

Similar to flatMap, but f returns Either instead of TaskEither.

Implementation

TaskEither<L, C> chainEither<C>(Either<L, C> Function(R r) f) => flatMap(
      (r) => f(r).toTaskEither(),
    );