Add Exercise 2.18

This commit is contained in:
Tobias Eidelpes 2022-11-05 14:59:19 +01:00
parent b8690c9e5f
commit aef78e5af1

View File

@ -123,3 +123,9 @@ and upper bound."
(if (null (cdr l)) (if (null (cdr l))
l l
(last-pair (cdr l)))) (last-pair (cdr l))))
;; Exercise 2.18
(defun reverse-user (l)
(if (null l)
()
(append (reverse-user (cdr l)) (list (car l)))))