Common Lisp the Language 2nd Edition


next up previous contents index
Next: Vectors Up: Data Types Previous: Lists and Conses

2.5. Arrays

An array is an object with components arranged according to a Cartesian coordinate system. In general these components may be any Lisp data objects.

The number of dimensions of an array is called its rank (this terminology is borrowed from APL); the rank is a non-negative integer. Likewise each dimension is itself a non-negative integer. The total number of elements in the array is the product of all the dimensions.

An implementation of Common Lisp may impose a limit on the rank of an array An implementation of Common Lisp may impose a limit on the rank of an arraydingRC="icons/next_motif.gif">