map
map(u_funcl_arg1[l_arg2... ] ) =>l_arg1
Description
Applies the given function to successive sublists of the argument lists and returns the first argument list. All of the lists should have the same length. This function is not the same as the standard Scheme map function. To get the behavior of the standard Scheme map function, use mapcar instead. This function is usually used for its side effects, not its return value (see mapc).
This function is not the same as the standard Scheme map function. To get the behavior of the standard Scheme map function, use mapcar instead.
Arguments
|
Function to apply to successive sublists. Must be a function that accepts lists as arguments. |
|
|
Additional argument lists, which must be the same length as l_arg1. |
Value Returned
Examples
map( 'list '(1 2 3) '(9 8 7) )
=> (1 2 3)
Prints three lists as a side effect and returns the list (1 2 3).
map( '(lambda (x y) (print (append x y))) '(1 2 3) '(9 8 7) )
(1 2 3 9 8 7) (2 3 8 7) (3 7)
=> (1 2 3)
Related Topics
Return to top