getOrThrow method
R
getOrThrow()
Returns the Right.value if this Either is Right, otherwise throws the Left.value.
This is functionally equivalent to getOrHandle((value) => throw value)
.
Implementation
R getOrThrow() => getOrHandle((value) => throw value);