User Tools


Differences

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

Link to this comparison view

cl:functions:array-dimension [2019/06/15 02:00]
cl:functions:array-dimension [2019/09/16 13:00] (current)
Line 1: Line 1:
 +====== Function ARRAY-DIMENSION ======
 +
 +====Syntax====
 +  * **array-dimension** //array axis-number//​ → //​dimension//​
 +
 +====Arguments and Values====
 +  * //array// - an //​[[CL:​Glossary:​array]]//​.
 +  * //​axis-number//​ - an //​[[CL:​Glossary:​integer]]//​ greater than or equal to zero and less than the //​[[CL:​Glossary:​rank]]//​ of the //array//.
 +  * //​dimension//​ - a non-negative //​[[CL:​Glossary:​integer]]//​.
 +
 +====Description====
 +**array-dimension** returns the //​axis-number//​ //​[[CL:​Glossary:​dimension]]//​ of //array//.
 +
 +(Any //​[[CL:​Glossary:​fill pointer]]// is ignored.)
 +
 +====Examples====
 +<​blockquote> ​
 +(array-dimension ([[CL:​Functions:​make-array]] 4) 0) <r>4 </r>
 +(array-dimension ([[CL:​Functions:​make-array]] '(2 3)) 1) <r>3 </r>
 +</​blockquote>​
 +
 +====Affected By==== ​
 +None. 
 +
 +====Exceptional Situations====
 +None.
 +
 +====See Also====
 +**[[CL:​Functions:​array-dimensions|Function ARRAY-DIMENSIONS]]**,​ **[[CL:​Functions:​length|Function LENGTH]]**
 +
 +====Notes====
 +<​blockquote> ​
 +(array-dimension array n) ≡ (nth n (array-dimensions array)) ​
 +</​blockquote>​
 +