Created
July 24, 2017 10:16
-
-
Save chomy/38064e749139551f5de5e280021b0bfc to your computer and use it in GitHub Desktop.
PFDS: Exercise 2.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun suffix (l) | |
(labels ((iterator (lst result) | |
(if (null lst) | |
result | |
(iterator (cdr lst) (append result (list lst)))))) | |
(iterator l '()))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment