CLCS
Function

array-dimension

array-dimension array axis-numberdimension

Arguments and Values

arrayan array.
axis-numberan integer greater than or equal to zero and less than the rank of the array.
dimensiona non-negative integer.

Description

array-dimension returns the axis-number dimension_1 of array. (Any fill pointer is ignored.)

Examples

 (array-dimension (make-array 4) 0) ⇒  4
 (array-dimension (make-array '(2 3)) 1) ⇒  3

Affected By

None.

Notes

 (array-dimension array n) ≡ (nth n (array-dimensions array))