'T option Type
The type of optional values. When used from other CLI languages the
empty option is the null
value.
Use the constructors Some
and None
to create values of this type.
Use the values in the Option
module to manipulate values of this type,
or pattern match against the values directly.
'None' values will appear as the value null
to other CLI languages.
Instance methods on this type will appear as static methods to other CLI languages
due to the use of null
as a value representation.
Instance members
Instance member |
Description
|
|
Return 'true' if the option is a 'None' value.
|
|
Return 'true' if the option is a 'Some' value.
|
Full Usage:
this.Value
Returns: 'T
|
Get the value of a 'Some' option. A NullReferenceException is raised if the option is 'None'.
|