DESTRUCTIVE LIST FUNCTIONS
Destructive functions that have non-desctructive equivalents are listed in other sections. See also sort, map-into, nreverse, delete, delete-if, delete-if-not, fill, and replace under SEQUENCE FUNCTIONS, setf under SYMBOL FUNCTIONS, and mapcan, mapcon, nsubst, nsublis, nintersection, nunion, nset-difference, and nset-exclusive-or under LIST FUNCTIONS.
REPLACE THE CAR OF A LIST NODE
(rplaca <list> <expr>)
- <list> the list node
- <expr> the new value for the car of the list node
- returns the list node after updating the car
REPLACE THE CDR OF A LIST NODE
(rplacd <list> <expr>)
- <list> the list node
- <expr> the new value for the cdr of the list node
- returns the list node after updating the cdr
DESTRUCTIVELY CONCATENATE LISTS
(nconc <list>...)
- <list> lists to concatenate
- returns the result of concatenating the lists
SUBSTITUTE EXPRESSIONS
(nsubst-if <to> <test> <expr> &key :key)
(nsubst-if-not <to> <test> <expr> &key :key)
- <to> the new expression
- <test> function of one argument to test each subtree
- <expr> the expression in which to do the substitutions
- :key function to apply to test function argument (defaults to identity)
- returns the expression with substitutions
XLISP-PLUS - Version 2.1g - Tom Almy
tom.almy@tek.com - 18 JUL 94
Generated with WebMaker