Function map
map aFunction argList1 [argList2 ...]
Invokes a a function repeatedly for a given set of arguments.
- Parameters:
- aFunction -
Function object that will be called.
- argList1 -
List of objects that will be passed as the first argument for
each invocation of aFunction.
- argList2 -
List of objects that will be passed as the second argument for
each invocation of aFunction.
- Returns:
-
A list with the return values of each invocation of
aFunction.
-
All the lists argList1, argList2, ...,
must have the same number of elements. If that is not the case
then a runtime error will occur.
The function aFunction will be called as many times
as the number of elements in one the lists containing the arguments.
Report a bug or request new features
© 2002