17.05.2015 Views

zl:1 - FTP

zl:1 - FTP

zl:1 - FTP

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>zl</strong> :copylist* 116<br />

The optional area argument is the number of the area in which to create<br />

the new list. (Areas are an advanced feature of storage management.) See<br />

the section "Areas" in Internals, Processes, and Storage Management.<br />

copy-list· is a Symbolics extension to Common Lisp.<br />

For a table of related items: See the section "Functions for Copying Lists"<br />

in Symbolics Common Lisp: Language Concepts.<br />

I<br />

<strong>zl</strong>:copylist· list &optional area Function<br />

This is the same as <strong>zl</strong>:copylist except that the last cons of the resulting<br />

list is never cdr-coded. See the function <strong>zl</strong>:copylist, page 115. See the section<br />

"Cdr-Coding" in Symbolics Common Lisp: Language Concepts. This<br />

makes for increased efficiency if you nconc something onto the list later.<br />

For a table of related items: See the section "Functions for Copying Lists"<br />

in Symbolics Common Lisp: Language Concepts.<br />

copy-seq sequence &optional area Function<br />

A copy is made of the argument sequence, and the result is equalp to the<br />

argument, but not eq. The function copy-seq returns the same result as<br />

the function subseq, when the value of the start argument of subseq is o.<br />

sequence can be either a list or a vector (one-dimensional array). Note that<br />

nil is considered to be a sequence, of length zero.<br />

For example:<br />

(setq name "Bill") => "Bill"<br />

(setq a-copy (copy-seq name»<br />

=> "Bill"<br />

a-copy => "Bill"<br />

name => "Bill"<br />

(equalp a-copy name) => T<br />

(eq a-copy name) => NIL<br />

The optional area argument is the number of the area in which to create<br />

the new alist. (Areas are an advanced feature of storage management.)<br />

See the section "Areas" in Internals, Processes, and Storage Management.<br />

For a table of related items: See the section "Sequence Construction and<br />

Access" in Symbolics Common Lisp: Language Concepts.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!