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