Function: cl-mapcan

cl-mapcan is an autoloaded and byte-compiled function defined in cl-extra.el.gz.

Signature

(cl-mapcan FUNCTION SEQUENCE...)

Documentation

Like cl-mapcar, but nconc's together the values returned by the function.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/cl-extra.el.gz
;;;###autoload
(defun cl-mapcan (func seq &rest rest)
  "Like `cl-mapcar', but nconc's together the values returned by the function.
\n(fn FUNCTION SEQUENCE...)"
  (declare (important-return-value t))
  (if rest
      (apply #'nconc (apply #'cl-mapcar func seq rest))
    (mapcan func seq)))