]> code.delx.au - gnu-emacs/blobdiff - lisp/gnus/gnus-util.el
An efficient built-in mapcan
[gnu-emacs] / lisp / gnus / gnus-util.el
index 906ea6037708cf6f5f51c8c38c555555edf91c9c..b6ef4334e7e7acc3d845d2f85ba367f58f50b947 100644 (file)
@@ -1599,7 +1599,7 @@ sequence, this is like `mapcar'.  With several, it is like the Common Lisp
                                                           heads))
                                        nil))
             (setq ,result-tail (cdr ,result-tail)
-                  ,@(apply 'nconc (mapcar (lambda (h) (list h (list 'cdr h))) heads))))
+                  ,@(mapcan (lambda (h) (list h (list 'cdr h))) heads)))
           (cdr ,result)))
     `(mapcar ,function ,seq1)))