(mapcar)

(mapcar function list1 [list2 ...])


Apply the function to the list.


This function is one of the most powerful tools for handling large lists. Mapcar performs a function on each of the elements of a list, and then returns a second list. There can be multiple lists, but each list must have the correct number of items for the function to affect all the lists at one time.

Example

Code Returns
(mapcar '* '(5 3 2) '(2 2 2)) (10 6 4)

Tell me about...

(apply function list)

(defun [c:] name ([arg1 arg2 ...] / [local-var1 local-var2 ...]) expression)

(eval statement)

LISP Compatibility

Programming Overview of LISP (LISt Processing) Language