maplist
maplist(u_funcl_arg1[l_arg2... ] ) =>l_result
Description
Applies a function to successive sublists of the argument lists and returns a list of the corresponding results. All of the lists should have the same length.
The returned values of the successive function calls are concatenated using the function list.
Arguments
|
Function to be applied to argument lists. Must accept lists as arguments. The result of calling u_func can be of any data type. |
|
|
Additional argument lists, which must be the same length as l_arg1. |
Value Returned
|
A list of the results returned from calling u_func on successive sublists of the argument list. |
Examples
maplist( 'length '(1 2 3) )
=> (3 2 1)
maplist( 'list '(a b c) '(1 2 3) )
=> (((a b c)(1 2 3))((b c)(2 3))((c)(3)))
Related Topics
Return to top