;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Apr 2000
;;;;
-;;;; $Id$
-;;;;
;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
;;;; KMRCL users are granted the rights to distribute and use this software
(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)))