rplaca
cons object ⇒ cons
rplacd
cons object ⇒ cons
rplaca: pronounced ,r\=e ’plak e or pronounced ,re ’plak e
rplacd: pronounced ,r\=e ’plak de or pronounced ,re ’plak de or pronounced ,r\=e ’plak d\=e or pronounced ,re ’plak d\=e
(defparameter *some-list* (list* 'one 'two 'three 'four)) ⇒ *some-list*
*some-list* ⇒ (ONE TWO THREE . FOUR)
(rplaca *some-list* 'uno) ⇒ (UNO TWO THREE . FOUR)
*some-list* ⇒ (UNO TWO THREE . FOUR)
(rplacd (last *some-list*) (list 'IV)) ⇒ (THREE IV)
*some-list* ⇒ (UNO TWO THREE IV)