Reverse in terms of folds
Complete the following definitions of
) in terms of
(define (reverse-right sequence) (fold-right (lambda (x y) <??>) nil sequence)) (define (reverse-left sequence) (fold-left (lambda (x y) <??>) nil sequence))
There are no comments yet.
You must log in to post a comment.Login