Skip to main content

getOrElse()

getOrElse<E, A>(onLeft): (ma) => Task<A>

Extracts the value from a Right or applies a function to the Left.


Type Parametersโ€‹

E: Eโ€‹

The error type.

A: Aโ€‹

The success type.


Parametersโ€‹

onLeft: (e) => Task<A>โ€‹

Handler for Left case.


Returnsโ€‹

A function that extracts the value.


Sinceโ€‹

2.0.0