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.

367 notinline<br />

For example:<br />

(notevery #'oddp '(1 2 5»<br />

=> T<br />

(notevery #'equal '(1 2 3) '(1 2 3»<br />

=> NIL<br />

If predicate has side effects, it can count on being called fIrst on all those<br />

elements with an index of 0, then all those with an index of 1, and so on.<br />

For a table of related items: See the section "Predicates That Operate on<br />

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

I<br />

notinline<br />

Declaration<br />

(notinline functionl function2 ... ) specifies that it is undesirable to compile<br />

the specified functions in-line. This declaration is pervasive, that is it affects<br />

all code in the body of the form.<br />

Note that rules of lexical scoping are observed; if one of the functions mentioned<br />

has a lexically apparent local defInition (as made by flet or labels),<br />

then the declaration applies to that local defInition and not to the global<br />

function defmition.<br />

nreeone 1 tail Function<br />

This returns a list that is the fIrst argument reversed concatenated concatenated<br />

together with the second argument. (nreeone 1 tail) is exactly<br />

the same as (neone (nreverse l) tail) except that it is more effIcient. Both<br />

1 and tail should be lists. Example:<br />

(setq x '(a b c»<br />

(setq y '(d e f»<br />

(nreconc x y) => (c bad e f)<br />

x => (a d e f)<br />

nreeone could have been defmed by:<br />

(de fun nreconc (1 tail)<br />

(cond «null 1) tail)<br />

«nreverse1 1 tail» »<br />

defun nreverse1 (1 tail)<br />

; auxiliary function<br />

(cond «null (cdr 1» (rp1acd 1 tail»<br />

«nreverse1 (cdr 1) (rp1acd 1 tail»»)<br />

;; this last call depends on order of argument evaluation.<br />

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

Lists and Conses" in Symbolics Common Lisp: Language Concepts.

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

Saved successfully!

Ooh no, something went wrong!