getOrElseW()
getOrElseW<
E,B>(onLeft): <A>(ma) =>B|A
Extracts the value from a Right or applies a function to the Left with widened return type.
Type Parameters
E: E
The error type.
B: B
The fallback return type.
Parameters
onLeft: (e) => B
Handler for Left case.
Returns: <A>(ma): B | A
A function that takes an Either and returns A or B.
Since
2.0.0