orElseW()
orElseW<
E1,E2,B>(onLeft): <A>(ma) =>Either<E2,B|A>
Recovers from a Left by applying a function with widened error type.
Type Parameters
E1: E1
The original error type.
E2: E2
The new error type.
B: B
The new success type.
Parameters
onLeft: (e) => Either<E2, B>
Handler for Left case.
Returns: <A>(ma): Either<E2, B | A>
A function that transforms the Either.
Since
2.0.0