(map proc list1 . lists)
The lists must be lists, and proc must be a procedure taking as many arguments as there are lists and returning a single value. If more than one list is given, then they must all be the same length. Map applies proc element-wise to the elements of the lists and returns a list of the results, in order. The dynamic order in which proc is applied to the elements of the lists is unspecified.
lists -- any number of additional lists
proc -- a function taking as many arguments as lists
list1 -- a scheme list
(map (lambda (a b) (* a b)) '(1 2 3) '(2 2 2)) => (2 4 6)
Back to index