Ranges/Aliases
Ranges
A range represents a range of numbers or in some contexts a range of types. A range has a lower and a upper bound.
The sample above uses a range from 1 to 200 inclusive. That means an array will be instantiated with all the values from 1 to 200.
Type Aliases
You can use a type by a custom name. This is called a type alias. (Currently type aliases are bound to the whole assembly/program)
The definition:
Example:
As you can see in the sample above the alias type can be used as if it were a normal integer.
Last updated