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