Returns the row-major index position of an array element.
Computes the position according to the row-major ordering of array for the element that is specified by subscripts, and returns the position of that element.
An error is signaled if the number of subscripts is not equal to the rank of the array. An error is signaled if any of the subscripts are out of bounds for array.
The method for <array> computes the index using the subscripts and the result of calling dimensions on the array.
open
| array | An instance of <array>. |
| #rest subscripts | Instances of <object>. |
| index | An instance of <integer>. |