Consider the following
procedure, which uses the
procedure defined in exercise
(define (make-cycle x) (set-cdr! (last-pair x) x) x)
Draw a box-and-pointer diagram that shows the structure
(define z (make-cycle (list 'a 'b 'c)))
What happens if we try to compute
Nobody's finished this exercise yet. You'll be the first!
There are no comments yet.
You must log in to post a comment.Login