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.

least-positive-single-float 288<br />

I<br />

least-positive-single-float<br />

Constant<br />

The value of least-positive-single-float is that positive floating-point number<br />

in single- float format closest in value (but not equal to) zero.<br />

length sequence Function<br />

length returns the number of elements in sequence as a non-negative integer.<br />

If the sequence is a vector with a fill pointer, the "active length" as<br />

specified by the fill pointer is returned.<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 />

(length 'e»~<br />

=> B<br />

(length '(a be» => 3<br />

(length '(a (b c) de» => 4<br />

(length (vector 'a 'b Ie 'd 'e» => 5<br />

See the section "Array Leaders" in Symbolics Common Lisp: Language Concepts.<br />

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

About Lists and Conses" in Symbolics Common Lisp: Language Concepts.<br />

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

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

<strong>zl</strong>:length list Function<br />

<strong>zl</strong>:length returns the length of list. The length of a list is the number of<br />

elements in it. Examples:<br />

(21 :length nil) => B<br />

(21 :length '(a bed» => 4<br />

(21 :length '(a (b c) d» => 3<br />

<strong>zl</strong>:length could have been defined by:<br />

or by:<br />

(defun length (x)<br />

(cond «atom x) B)<br />

«1+ (21 :length (cdr x»» »

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

Saved successfully!

Ooh no, something went wrong!