Function: seq-mapcat

seq-mapcat is a byte-compiled function defined in seq.el.gz.

Signature

(seq-mapcat FUNCTION SEQUENCE &optional TYPE)

Documentation

Concatenate the results of applying FUNCTION to each element of SEQUENCE.

The result is a sequence of type TYPE; TYPE defaults to list.

Other relevant functions are documented in the sequence group.

View in manual

Shortdoc

;; sequence
(seq-mapcat #'upcase '("a" "b" "c") 'string)
    => "ABC"

Implementations

(seq-mapcat FUNCTION SEQUENCE &optional TYPE) in `seq.el'.

Undocumented

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/seq.el.gz
(cl-defgeneric seq-mapcat (function sequence &optional type)
  "Concatenate the results of applying FUNCTION to each element of SEQUENCE.
The result is a sequence of type TYPE; TYPE defaults to `list'."
  (apply #'seq-concatenate (or type 'list)
         (seq-map function sequence)))