You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
Exercise 2.39: Complete the following
|
|
definitions of reverse (Exercise 2.18) in terms of
|
|
fold-right and fold-left from Exercise 2.38:
|
|
|
|
|
|
(define (reverse sequence)
|
|
(fold-right
|
|
(lambda (x y) ⟨??⟩) nil sequence))
|
|
|
|
(define (reverse sequence)
|
|
(fold-left
|
|
(lambda (x y) ⟨??⟩) nil sequence))
|
|
|