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.

445 remprop<br />

:start indicates the start position for the operation within the sequence.<br />

:end indicates the position of the first element in the sequence beyond the<br />

end of the operation. It defaults to nil (the length of the sequence).<br />

If both :start and :end are omitted, the entire sequence is processed by<br />

default.<br />

For example:<br />

(remove-if-not #'atom '('a 1 "list")) => (1 "list")<br />

(remove-if-not #'numberp '('a 'b 'c) :start 1 :end 2) => ('A 'e)<br />

(remove-if-not #'evenp '(1 235) :start B :end 3) => (2 5)<br />

The :count argument, if supplied, limits the number of elements deleted.<br />

If more than :count elements of sequence satisfy the predicate, then only<br />

the leftmost :count of those elements are deleted.<br />

For example:<br />

(remove-if-not #'oddp '(1 1 2 2) :count 1 ) => (1 1 2)<br />

remove-if-not is the non-destructive version of delete-if-not.<br />

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

Symbolics Common Lisp: Language Concepts.<br />

I<br />

:remove of si:heap<br />

Method<br />

Removes the top item from the heap and returns it and its key as values.<br />

The third value is nil if the heap was empty; otherwise it is t.<br />

For a table of related items: See the section "Heap Functions and Methods"<br />

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

remprop symbol indicator Function<br />

The remprop function removes from the property list in symbol a property<br />

with an indicator eq to indicator. For example, if the property list of foo<br />

was:<br />

then:<br />

(color blue height six-three near-to bar)<br />

(remprop 'faa 'height) => (six-three near-to bar)<br />

and foo's property list would be:

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

Saved successfully!

Ooh no, something went wrong!