| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| 2 |
<html> |
| 3 |
<!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ --> |
| 4 |
<head> |
| 5 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 6 |
<title>array-dimensions (ANSI and GNU Common Lisp Document)</title> |
| 7 |
|
| 8 |
<meta name="description" content="array-dimensions (ANSI and GNU Common Lisp Document)"> |
| 9 |
<meta name="keywords" content="array-dimensions (ANSI and GNU Common Lisp Document)"> |
| 10 |
<meta name="resource-type" content="document"> |
| 11 |
<meta name="distribution" content="global"> |
| 12 |
<meta name="Generator" content="makeinfo"> |
| 13 |
<link href="index.html" rel="start" title="Top"> |
| 14 |
<link href="Arrays-Dictionary.html" rel="up" title="Arrays Dictionary"> |
| 15 |
<link href="array_002delement_002dtype.html" rel="next" title="array-element-type"> |
| 16 |
<link href="array_002ddimension.html" rel="prev" title="array-dimension"> |
| 17 |
<style type="text/css"> |
| 18 |
<!-- |
| 19 |
a.summary-letter {text-decoration: none} |
| 20 |
blockquote.indentedblock {margin-right: 0em} |
| 21 |
div.display {margin-left: 3.2em} |
| 22 |
div.example {margin-left: 3.2em} |
| 23 |
div.lisp {margin-left: 3.2em} |
| 24 |
kbd {font-style: oblique} |
| 25 |
pre.display {font-family: inherit} |
| 26 |
pre.format {font-family: inherit} |
| 27 |
pre.menu-comment {font-family: serif} |
| 28 |
pre.menu-preformatted {font-family: serif} |
| 29 |
span.nolinebreak {white-space: nowrap} |
| 30 |
span.roman {font-family: initial; font-weight: normal} |
| 31 |
span.sansserif {font-family: sans-serif; font-weight: normal} |
| 32 |
ul.no-bullet {list-style: none} |
| 33 |
--> |
| 34 |
</style> |
| 35 |
|
| 36 |
|
| 37 |
</head> |
| 38 |
|
| 39 |
<body lang="en"> |
| 40 |
<span id="array_002ddimensions"></span><div class="header"> |
| 41 |
<p> |
| 42 |
Next: <a href="array_002delement_002dtype.html" accesskey="n" rel="next">array-element-type</a>, Previous: <a href="array_002ddimension.html" accesskey="p" rel="prev">array-dimension</a>, Up: <a href="Arrays-Dictionary.html" accesskey="u" rel="up">Arrays Dictionary</a> </p> |
| 43 |
</div> |
| 44 |
<hr> |
| 45 |
<span id="array_002ddimensions-_005bFunction_005d"></span><h4 class="subsection">15.2.12 array-dimensions [Function]</h4> |
| 46 |
|
| 47 |
<p><code>array-dimensions</code> <i>array</i> ⇒ <i>dimensions</i> |
| 48 |
</p> |
| 49 |
<span id="Arguments-and-Values_003a_003a-324"></span><h4 class="subsubheading">Arguments and Values::</h4> |
| 50 |
|
| 51 |
<p><i>array</i>—an <i>array</i>. |
| 52 |
</p> |
| 53 |
<p><i>dimensions</i>—a <i>list</i> of <i>integers</i>. |
| 54 |
</p> |
| 55 |
<span id="Description_003a_003a-431"></span><h4 class="subsubheading">Description::</h4> |
| 56 |
|
| 57 |
<p>Returns a <i>list</i> of the <i>dimensions</i> of <i>array</i>. |
| 58 |
(If <i>array</i> is a <i>vector</i> with a <i>fill pointer</i>, |
| 59 |
that <i>fill pointer</i> is ignored.) |
| 60 |
</p> |
| 61 |
<span id="Examples_003a_003a-308"></span><h4 class="subsubheading">Examples::</h4> |
| 62 |
|
| 63 |
<div class="example"> |
| 64 |
<pre class="example"> (array-dimensions (make-array 4)) ⇒ (4) |
| 65 |
(array-dimensions (make-array '(2 3))) ⇒ (2 3) |
| 66 |
(array-dimensions (make-array 4 :fill-pointer 2)) ⇒ (4) |
| 67 |
</pre></div> |
| 68 |
|
| 69 |
<span id="Exceptional-Situations_003a_003a-140"></span><h4 class="subsubheading">Exceptional Situations::</h4> |
| 70 |
|
| 71 |
<p>Should signal an error of <i>type</i> <b>type-error</b> if its argument is not an <i>array</i>. |
| 72 |
</p> |
| 73 |
<span id="See-Also_003a_003a-352"></span><h4 class="subsubheading">See Also::</h4> |
| 74 |
|
| 75 |
<p><a href="array_002ddimension.html">array-dimension</a> |
| 76 |
</p> |
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
</body> |
| 81 |
</html> |