Created
July 2, 2013 10:14
-
-
Save churib/5908179 to your computer and use it in GitHub Desktop.
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 remove* (symbol tree) | |
"Removes SYMB0L from TREE." | |
(cond ((null tree) tree) | |
((atom (car tree)) | |
(if (equalp symbol (car tree)) | |
(remove* symbol (cdr tree)) | |
(cons (car tree) (remove* symbol (cdr tree))))) | |
(t (cons (remove* symbol (car tree)) | |
(remove* symbol (cdr tree)))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment