ARRAY FUNCTIONS
Note that sequence functions also work on arrays.
GET THE NTH ELEMENT OF AN ARRAY
(aref <array> <n>)
See setf for setting elements of arrays
- <array> the array (or string)
- <n> the array index (integer, zero based)
- returns the value of the array element
MAKE A NEW ARRAY
(make-array <size> &key :initial-element :initial-contents)
- <size> the size of the new array (integer)
- :initial-element
value to initialize all array elements, default NIL
- :initial-contents
sequence used to initialize all array elements, consecutive sequence elements are used for each array element. The length of the sequence must be the same as the size of the array
- returns the new array
MAKE AN INITIALIZED VECTOR
(vector <expr>...)
- <expr> the vector elements
- returns the new vector
XLISP-PLUS - Version 2.1g - Tom Almy
tom.almy@tek.com - 18 JUL 94
Generated with WebMaker