Arrays
These commands allow modify and inspect Arrays and Array-like variables.
LBOUND
- Arguments:
ANY,INTEGER - Minimum arguments: 1
- Return Type:
INTEGER
Get the lower bound of a dimension of an array. First dimension is default.
ARRAY [, DIMENSION]
POP
- Arguments:
ANY,ANY - Minimum arguments: 1
Removes an item from the end of a single-dimensional array. Modifies the range end of the array.
If the array is empty, ITEM is not modified and ST is set to -1
ARRAY [, OUT ITEM]
PUSH
- Arguments:
ANY,ANY
Push a new item to the end of a single-dimensional array. Modifies the range end of the array.
ARRAY, ITEM
SHIFT
- Arguments:
ANY,ANY - Minimum arguments: 1
Removes an item from the begining of a single-dimensional array. Modifies the range end of the array; re-indexes elements inside backwards.
If the array is empty, ITEM is not modified and ST is set to -1
ARRAY [, OUT ITEM]
UBOUND
- Arguments:
ANY,INTEGER - Minimum arguments: 1
- Return Type:
INTEGER
Get the upper bound of a dimension of an array. First dimension is default.
ARRAY [, DIMENSION]
UNSHIFT
- Arguments:
ANY,ANY
Push a new item to the begining of a single-dimensional array. Modifies the range end of the array; re-indexes elements inside forward.
ARRAY, ITEM