fromRight package:relude

Return the contents of a Right-value or a default value otherwise. @since base-4.10.0.0

Examples

Basic usage:
>>> fromRight 1 (Right 3)
3

>>> fromRight 1 (Left "foo")
1