lispdoc - results for rplaca |
(rplaca cons x) | Function: Change the CAR of CONS to X and return the CONS.
|
| Mentioned in: CLtL2 - 15.1. Conses CLtL2 - 15.3. Alteration of List Structure CLtL2 - 15.5. Using Lists as Sets CLtL2 - 7.2. Generalized Variables HyperSpec - Function RPLACA, RPLACD On Lisp - When Nothing Else Will Do PCL - other structures Successful Lisp - closures | |
(replace sequence1 sequence2 &rest args &key (start1 0) (end1 nil) (start2 0) (end2 nil)) | Function: The target sequence is destructively modified by copying successive elements into it from the source sequence.
|
Example:(defun parse-name (name) (let ((name (subseq name 21))) (declare (type simple-string name)) (if (search name "SB!" :end1 3) (replace name "SB-" :end1 3) name))) | Mentioned in: CLtL2 - 14.1. Simple Sequence Functions CLtL2 - 14.3. Modifying Sequences CLtL2 - 7.2. Generalized Variables HyperSpec - Function REPLACE Successful Lisp - chapter13 |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| By Bill Moorier |