You can modify the CAR and CDR contents of a cons cell with the
primitives setcar and setcdr. We call these "destructive"
operations because they change existing list structure.
Common Lisp note: Common Lisp uses functions
rplacaandrplacdto alter list structure; they change structure the same way assetcarandsetcdr, but the Common Lisp functions return the cons cell whilesetcarandsetcdrreturn the new CAR or CDR.
Go to the first, previous, next, last section, table of contents.