Applies a function to the value inside the Either instance if it is on the left side, returning a new Either instance containing the result of the function. If the Either is on the right side, it returns itself.
An Either instance representing the transformed left side.
Applies a function to the value inside the Either instance if it is on the right side, returning a new Either instance containing the result of the function. If the Either is on the left side, it returns itself.
An Either instance representing the transformed right side.
Generated using TypeDoc
Represents a type that can be either of type L or R. Either
Example: Use Either to handle erros
Example: capture correct side value
Example: type-safe error handler