This file contains hidden or 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 flatten(tree) | |
(let((result nil) | |
(head(car tree)) | |
(tail(cdr tree))) | |
(tagbody top | |
(if(and(null tail)(null head)) | |
(return-from flatten (nreverse result)) | |
(if(consp head) | |
(progn | |
(push(cdr head)tail) |
This file contains hidden or 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 find-all(item seq &rest args &key(test #'eql)test-not &allow-other-keys) | |
(apply #'remove item seq :test(when test-not test-not) | |
:test-not(unless test-not test)args)) |
NewerOlder