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