X-Git-Url: http://git.kpe.io/?p=kmrcl.git;a=blobdiff_plain;f=lists.lisp;h=a2ae23ff6c34d4c6ee20d0e2d7c1f426542d2018;hp=eaa3f9d372aa601d079d6f24ead4798bc17ea467;hb=c0e985428b4aa14bdc5a0688315bc4dbb5142ba3;hpb=94c161e4a288d874d8d763b768312e1004a888ec diff --git a/lists.lisp b/lists.lisp index eaa3f9d..a2ae23f 100644 --- a/lists.lisp +++ b/lists.lisp @@ -76,9 +76,9 @@ (defun flatten (tree) (let ((result '())) (labels ((scan (item) - (if (listp item) - (map nil #'scan item) - (push item result)))) + (if (consp item) + (map nil #'scan item) + (push item result)))) (scan tree)) (nreverse result)))