r5417: *** empty log message ***
authorKevin M. Rosenberg <kevin@rosenberg.net>
Thu, 31 Jul 2003 07:36:55 +0000 (07:36 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Thu, 31 Jul 2003 07:36:55 +0000 (07:36 +0000)
class-support.lisp

index a085828956576010adfb476ebf66fd5a30da0af6..dc1fcf368212ad1beb59cf42efd396f3df9c5c7e 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Author:       Kevin M. Rosenberg
 ;;;; Date Started: Apr 2000
 ;;;;
-;;;; $Id: class-support.lisp,v 1.19 2003/07/21 08:41:44 kevin Exp $
+;;;; $Id: class-support.lisp,v 1.20 2003/07/31 07:36:55 kevin Exp $
 ;;;;
 ;;;; This file, part of UMLisp, is
 ;;;;    Copyright (c) 2000-2003 by Kevin M. Rosenberg, M.D.
 
 (defmethod mesh-number ((ustr ustr))
   (let ((codes
-        (filter (lambda (sat)
-                  (when (and (string-equal "MSH" (sab sat))
-                             (string-equal "MN" (atn sat)))
-                    (atv sat)))
-                (s#sat ustr))))
+        (map-and-remove-nils
+         (lambda (sat)
+           (when (and (string-equal "MSH" (sab sat))
+                      (string-equal "MN" (atn sat)))
+             (atv sat)))
+         (s#sat ustr))))
     (if (= 1 (length codes))
        (car codes)
       codes)))