aref
aref — returns an array expression at a given index.
aref (array, index)
arrayAn array.
indexA number giving the index into the array, starting at zero.
The array element at the given index in the array.
The index starts at zero, and extends to the length of the array minus
one. If the index is not valid in the array, nil is returned, but no error is
generated.
![]() | |
Note: This function is identical to the square bracket syntax for referencing array elements, with the syntax: array[index] |
Gamma>x = array (1, 5, #d, "farm");[1 5 d "farm"]Gamma>aref (x, 0);1Gamma>aref (x, 8);nilGamma>x[3];"farm"Gamma>