User Tools


Function ARRAY-RANK

Syntax

  • array-rank arrayrank

Arguments and Values

Description

Returns the number of dimensions of array.

Examples

(array-rank (make-array '()))

0

(array-rank (make-array 4))

1

(array-rank (make-array '(4)))

1

(array-rank (make-array '(2 3)))

2

Affected By

None.

Exceptional Situations

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

See Also

Notes

None.