Go to the first, previous, next, last section, table of contents.

Array Types

index-type must be an ordinal type (see section Ordinal Types). The common case is an integer subrange such as [1..num-slots], though many programmers prefer user-defined enumeration types.

slot-type can be any type; it could even be another array.


Example

The built-in functions FIRST, LAST, and NUMBER can be used with array types and variables to return the index of the first and last slot and number of slots, respectively. For example, FIRST(OneDimArray) is 1; NUMBER(OneDimArray2) is 26.


Go to the first, previous, next, last section, table of contents.