Module optional.optional

Optional type

Functions

NameDescription
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

NameDescription
Optional Optional type. Also known as a Maybe or Option type in some languages.

Global variables

NameTypeDescription
none immutable(optional.optional.None) Represents an empty optional value. This is used to set Optionals to have no value or for comparisons