getOrElse<C, L, R> function
ReaderTask<C, R> Function(ReaderTaskEither<C, L, R> taskEither)
getOrElse<C, L, R>(
- R onLeft(
- L left
Unwrap the Either value. Resolves to the unwrapped Right value, but
if the ReaderTaskEither is an Left, the onLeft
callback determines the
fallback value.
Implementation
ReaderTask<C, R> Function(ReaderTaskEither<C, L, R> taskEither)
getOrElse<C, L, R>(
R Function(L left) onLeft,
) =>
(fa) => ReaderTask(fa.call.c(TE.getOrElse(onLeft)));