array
array — constructs an array.
array (s_exp?...)
s_expAny Gamma or Lisp expression.
An array containing all of the arguments.
An array is represented as a sequence of objects surrounded by square brackets, as in [1 2 a (4 5)]. The objects within the brackets are not evaluated. To refer to or access an array, it must be assigned to a symbol.
This function constructs an array of all of the arguments, in the order
given. The arguments are evaluated when the array
function is called, but once the array has been constructed the array
objects are not evaluated.
It is possible to create an empty array, and fill it later. It will expand as necessary when array objects are added.
Gamma>array(#a, 5, nil, 4 + 3, "goodbye");[a 5 nil 7 "goodbye"]Gamma>y = array(5 * 2, #symbol, 432, "string", nil);[10 symbol 432 "string" nil]Gamma>z = array(#c, y);[c [10 symbol 432 "string" nil]]Gamma>x = array();[]Gamma>x[5] = 19;19Gamma>x;[nil nil nil nil nil 19]Gamma>