Safely extracts the value from an Either with a fallback. Use this function when you need to convert an Either<E, A> to an A, providing a default value for the Left case.
Either
Either<E, A>
A
Left
The value to return if the Either is Left
The contained value if Right, the result of onLeft if Left
Right
onLeft
Safely extracts the value from an
Eitherwith a fallback. Use this function when you need to convert anEither<E, A>to anA, providing a default value for theLeftcase.