Function: array (<name>, <dim_1>, ..., <dim_n>)
Function: array (<name>, <type>, <dim_1>, ..., <dim_n>)
Function: array ([<name_1>, ..., <name_m>], <dim_1>, ..., <dim_n>) Creates an n-dimensional array. n may be less than or equal to 5. The subscripts for the ith dimension are the integers running from 0 to <dim_i>.
array (<name>, <dim_1>, ..., <dim_n>) creates a general array.
array (<name>, <type>, <dim_1>, ..., <dim_n>) creates an array, with elements of a specified type. <type> can be
fixnum for integers of limited size or
flonum for floating-point numbers.
array ([<name_1>, ..., <name_m>], <dim_1>, ..., <dim_n>) creates m arrays, all of the same dimensions.
If the user assigns to a subscripted variable before declaring the corresponding array, an undeclared array is created. Undeclared arrays, otherwise known as hashed arrays (because hash coding is done on the subscripts), are more general than declared arrays. The user does not declare their maximum size, and they grow dynamically by hashing as more elements are assigned values. The subscripts of undeclared arrays need not even be numbers. However, unless an array is rather sparse, it is probably more efficient to declare it when possible than to leave it undeclared. The
array function can be used to transform an undeclared array into a declared array.
There are also some inexact matches for
?? array to see them.
(%o1) true (%i2)