alias for toLeft
alias for toRight
Catamorphism.
Catamorphism. Run the given function on the underlying value if present, otherwise return the provided fallback value
Return true
if this is a Some and the underlying value
satisfies the provided predicate
Return a new Option which is the result of applying a function to the value if a value is present.
Return a new Option which is the result of applying a function to the value if a value is present.
Return true
if this is a None or if this is a Some
and the underlying value satisfies the provided predicate
Call the side-effecting function with the value if one is present.
Call the side-effecting function with the value if one is present.
Return the underlying value if present, otherwise the provided fallback value
Return the underlying value if present, otherwise the provided fallback value
True if no underlying value is present
True if no underlying value is present
True if an underlying value is present
True if an underlying value is present
Return a new Option which is the result of applying a function to the value if a value is present.
Return a new Option which is the result of applying a function to the value if a value is present.
Return this instance if it is a Some, otherwise the provided fallback
Turn the underlying value into a failure validation if present, otherwise return a success validation with the provided fallback value
Turn the underlying value into a failure validation if present, otherwise return a success validation with the provided fallback value
Turn the underlying value into a left disjunction if present, otherwise return a right disjunction with the provided fallback value
Turn the underlying value into a left disjunction if present, otherwise return a right disjunction with the provided fallback value
Turn the underlying value into a right disjunction if present, otherwise return a left disjunction with the provided fallback value
Turn the underlying value into a right disjunction if present, otherwise return a left disjunction with the provided fallback value
Convert to a standard library Option
Convert to a standard library Option
Turn the underlying value into a success validation if present, otherwise return a failure validation with the provided fallback value
Turn the underlying value into a success validation if present, otherwise return a failure validation with the provided fallback value
alias for getOrElse