|
map
|
The map Function applies the specified function {proc}
to each value in {dictionary}. The map function returns a
structure containing the result of the each mapping. The function
{proc} must be a function that requires a single argument.
The map function is a non-destructive function useful when you want to apply a native or user-defined function to each member in a Dictionary. As a result, each member of the Dictionary may be updated by the map function without having to set up a loop and reference each field individually. For instance, the map function, with arguments of {proc} and {dictionary}, is equivalent to the following generic loop code:
(loop for i from 0 until (length dictionary) do (proc dictionary[i]))
(map proc dictionary) A new dictionary object containing values that have the values updated by
applying the map function to each value. The symbolic keys are copied as is
to the new dictionary object.
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Here are the links to the data types of the function arguments. Here are also a number of links to functions having arguments with any of these data types.
You can always talk with the AIS at aiserver.sourceforge.net.
Name
Description
AIS Types proc A function requiring a single argument. Function structure Dictionary containing the argument values for the function {proc} Dictionary
Returns:
Examples
Argument Types
Structure
Dictionary
NumMatrix
Directory
Vector
Matrix
Pair
List
ShortVector
FltVector
IntVector
NumVector
How do I contact the AIS team?