Function array-dimensions

Syntax:

array-dimensions array dimensions

Arguments and Values:

array—an array.

Barmar observes that nothing requires the implementation to enforce ARRAY-DIMENSION-LIMIT. It's a requirement on the user to be prepared to lose if he exceeds it, but it is not a requirement on the implementation to make him lose in that case.dimensions—a list of integers.

Description:

17.3.0 8Returns a list of the dimensions of array. (If array is a vector with a fill pointer, that fill pointer is ignored.)

Examples:

 (array-dimensions (make-array 4)) → (4)
 (array-dimensions (make-array '(2 3))) → (2 3)
 (array-dimensions (make-array 4 :fill-pointer 2)) → (4)

Affected By:

None.

Exceptional Situations:

Should signal an error of type type-error if its argument is not an array.

See Also:

array-dimension

Per X3J13. -kmp 05-Oct-93

Notes:

None.