User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

cl:functions:array-rank [2019/06/15 02:00]
cl:functions:array-rank [2019/06/16 07:00] (current)
Line 1: Line 1:
 +====== Function ARRAY-RANK ======
 +
 +====Syntax====
 +  * **array-rank** //array// → //rank//
 +
 +====Arguments and Values====
 +  * //array// - an //​[[CL:​Glossary:​array]]//​.
 +  * //rank// - a non-negative //​[[CL:​Glossary:​integer]]//​.
 +
 +====Description====
 +Returns the number of //​[[CL:​Glossary:​dimension|dimensions]]//​ of //array//.
 +
 +====Examples====
 +<​blockquote> ​
 +(array-rank ([[CL:​Functions:​make-array]] '())) <r>0 </r>
 +(array-rank ([[CL:​Functions:​make-array]] 4)) <r>1 </r>
 +(array-rank ([[CL:​Functions:​make-array]] '(4))) <r>1 </r>
 +(array-rank ([[CL:​Functions:​make-array]] '(2 3))) <​r>​2</​r>​
 +</​blockquote>​
 +
 +====Affected By====
 +None.
 +
 +====Exceptional Situations====
 +Should signal an error of type **[[CL:​Types:​type-error]]** if its argument is not an //​[[CL:​Glossary:​array]]//​.
 +
 +====See Also====
 +**[[CL:​Constant Variables:​array-rank-limit|Constant Variable ARRAY-RANK-LIMIT]]**,​ **[[CL:​Functions:​make-array|Function MAKE-ARRAY]]**
 +
 +====Notes====
 +None.
 +