PPT Slide
DESTRUCTIVE OPERATIONS
( rplaca < name > val )
replaces the car field by val
(rplacd < name > val )
replaces the cdr field by val
( setf L ( cons 'a ( cons 'b NIL ) ) )
( setf C ( cons 'e NIL ) )
L
a
b
C
e
( rplacd C L )
L
a
b
C
e
1.62
Previous slide
Next slide
Back to first slide
View graphic version