alt<C, L, R> function

ReaderTaskEither<C, L, R> Function(ReaderTaskEither<C, L, R>) alt<C, L, R>(
  1. ReaderTaskEither<C, L, R> orElse(
    1. L left
    )
)

If the given ReaderTaskEither is an Left, then unwrap the result and transform it into an alternative ReaderTaskEither.

Implementation

ReaderTaskEither<C, L, R> Function(ReaderTaskEither<C, L, R>) alt<C, L, R>(
  ReaderTaskEither<C, L, R> Function(L left) orElse,
) =>
    (fa) => ReaderTaskEither((r) => fa(r).p(TE.alt((l) => orElse(l)(r))));