Debian Codegraph @

doc/copy-array.html

raw
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <HTML>
3 <HEAD>
4 <TITLE>Function COPY-ARRAY</TITLE>
5 <LINK REL="stylesheet" HREF="style.css" type="text/css">
6 </HEAD>
7 <BODY>
8
9 <p><p><i>Function</i> <b>COPY-ARRAY</b></a></a> <p>
10 <p><b>Syntax:</b><p>
11
12 <p>
13
14 <p><b>copy-array</b> <i>array <tt>&key</tt> undisplace</i> => <i>new-array</i>
15 <p>
16 <p><b>Arguments and Values:</b><p>
17 <p>
18 <i>array</i>---an <i>array</i>. <p>
19
20 <i>undisplace</i>---a <i>generalized boolean</i>. The default is <i>false</i>.<p>
21
22 <i>new-array</i>---an <i>array</i></a>. <p>
23
24 <p>
25 <p><b>Description:</b><p>
26
27 <p>Shallow copies the contents of <i>array</i> into another array with
28 equivalent properties. If <i>array</i> is displaced, then this
29 function will normally create another displaced array with similar
30 properties, unless <i>undisplace</i> is <i>true</i>, in which case the
31 contents of <i>array</i> will be copied into a completely new, not
32 displaced, array.</p>
33
34 <p><p><b>Examples:</b></p>
35 <pre>
36 (copy-array #(1 2 3)) => #(1 2 3)
37
38 (let ((array #(1 2 3)))
39 (eq (copy-array array) array)) => NIL
40 </pre>
41
42 <p><p><b>Side Effects:</b> None.</p>
43
44 <p><p><b>Affected By:</b> None.</p>
45
46 <p class="footer"><hr><a href="index.html">Manual Index</a></p>
47
48 </body></html>