chainFirst<C> method
Chain a request that returns another Either, execute it, ignore the result, and return the same value as the current Either.
Implementation
Either<L, R> chainFirst<C>(
covariant Either<L, C> Function(R b) chain,
) =>
flatMap((b) => chain(b).map((c) => b).orElse((l) => right(b)));