How can I reverse a list?
Use: (define (reverse1 l) (if (null? l) nil (append (reverse1 (cdr l)) (list (car l))) ) ) Explanation: Rules: If the list is empty, then the reverse list is also empty Else behind the reverse tail of the list, add the first element of the list Look at this code this way: reverse1 is name … Read more