Unwraps the underlying value and returns it.
If the value is None
then this function
will throw an error with the given message.
Determines if the underlying value is None
,
or if the predicate using that same value returns true
.
Determines if the underlying value is something, and the predicate using that same value is also true.
Unwraps the underlying value and returns it.
If the value is None
then this function
will throw an error.
Represents a thing that may or may not have a value.
Very useful when dealing with things that might be null or undefined.
Example