17.05.2015 Views

zl:1 - FTP

zl:1 - FTP

zl:1 - FTP

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

319 loop-finish<br />

I<br />

loop-finish<br />

Macro<br />

(loop-finish) causes the iteration to terminate "normally", the same as implicit<br />

termination by an iteration-driving clause, or by the use of while or<br />

until - the epilogue code (if any) is run, and any implicitly collected result<br />

is returned as the value of the loop. For example:<br />

(loop for x in '(1 2 3 456)<br />

call eet x<br />

do (eond «= x 4) (loop-finish))))<br />

=> (1 2 3 4)<br />

This particular example would be better written as until (= x 4) in place of<br />

the do clause.<br />

See the section "loop Clauses", page 310.<br />

lower-case-p char<br />

Returns t if char is a lower-case letter.<br />

(lower-ease-p #\a) => T<br />

(lower-ease-p #\A) => NIL<br />

Function<br />

Ish number count Function<br />

Returns number shifted left count bits if count is positive or zero, or number<br />

shifted right Icountl bits if count is negative. Zero bits are shifted in<br />

(at either end) to fill unused positions. number and count must be flXIlums.<br />

Since the result is also a fumum, bits shifted off either end are lost. (In<br />

some applications you might find ash useful for shifting bignums.)<br />

Note that like the Zetalisp functions whose name begins with the percentsign<br />

(%), Ish is machine-dependent.<br />

Examples:<br />

(lsh 4 1) => #019<br />

(lsh #014 -2) => #03<br />

(lsh -1 1) => #0-2<br />

(lsh -199 27) => -536879912 ; (ash -199 27) => -13421772899<br />

For a table of related items: See the section "Machine-dependent Arithmetic<br />

Functions" in Symbolics Common Lisp: Language Concepts.

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

Saved successfully!

Ooh no, something went wrong!