Module optional.optional
Optional type
Functions
Name | Description |
no()
|
Type constructor for an optional having no value of T
|
some(value)
|
Type constructor for an optional having some value of T
|
toNullable(opt)
|
Turns an Optional in to a Nullable
|
toOptional(range)
|
Converts a range or Nullable to an optional type
|
Structs
Name | Description |
Optional
|
Optional type. Also known as a Maybe or Option type in some languages.
|
Global variables
Name | Type | Description |
none
|
immutable(optional.optional.None)
|
Represents an empty optional value. This is used to set Optional s to have no value
or for comparisons
|