Next: Function mapconcat, Previous: Function mapcar, Up: Mapping Functions   [Index]
mapcanThis function applies ‘FUNCTION’ to  each element of ‘SEQUENCE’, like mapcar,
but instead  of collecting the  results into a list,  it returns a  single list
with all  the elements of  the results (which must  be lists), by  altering the
results (using nconc).
Apply ‘FUNCTION’  to each element of  ‘SEQUENCE’, and concatenate the  results by
altering  them  (using  nconc).
‘SEQUENCE’ may be a list, a vector, a bool-vector, or a string.
mapcan; Contrast this:
(mapcar 'list '(a b c d))
     ⇒ ((a) (b) (c) (d))
;; with this:
(mapcan 'list '(a b c d))
     ⇒ (a b c d)