What is the function to a list in Scheme? It needs to be able to handle nested lists.
So that if you do something like (reverse \'(a (b c d) e)) you\'ll
(reverse \'(a (b c d) e))
My solution:
(define (rvrs ls) (if (null? ls) empty (append (rvrs (cdr ls)) (cons (car ls) empty))))