Simplified Common Lisp reference
mapcar
Symbol class: Conses, Lists and related functions
Syntax:
Symbol type: function
mapcarfnlists(one or more) => list
Argument description:
fn function that takes as many arguments as there are lists
lists lists which elements are processed in parallel

MAPCAR applies function FN to elements of lists with same index. Each application result is put into resulting list. Length of resulting list is the length of the shortest list argument. See MAPCAN.

(mapcar (lambda (x) (+ x 10)) '(1 2 3 4)) => (11 12 13 14)
(mapcar #'round '(1.3 2.7 3.4 4.5)) => (1 3 3 4)
(mapcar #'list '(123 symbol "string" 345) '(1 2 3)) => ((123 1) (SYMBOL 2) ("string" 3))
(mapcar #'* '(3 4 5) '(4 5 6)) => (12 20 30)
Function indexFull documentation for mapcar (HyperSpec)