(setcar): replace an antelope rather than
a giraffe with a hippopotamus.
This commit is contained in:
parent
78b3f5c3fa
commit
2b1575dfcf
2 changed files with 6 additions and 1 deletions
|
@ -7061,7 +7061,7 @@ The first element on the list, @code{antelope} is replaced by
|
|||
@code{hippopotamus}.
|
||||
|
||||
So we can see that @code{setcar} did not add a new element to the list
|
||||
as @code{cons} would have; it replaced @code{giraffe} with
|
||||
as @code{cons} would have; it replaced @code{antelope} with
|
||||
@code{hippopotamus}; it @emph{changed} the list.
|
||||
|
||||
@node setcdr, cons Exercise, setcar, car cdr & cons
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue