Example Structure map 001
|
Notes and Hints Note, that a copy was made, and the argument {proc} , add1,
was applied to each member in the copy of the Structure. The Student Structure
is left untouched, because the map function is non-destructive. Also note, the return value from the loop is the number of iterations
performed. In this case, it is the number 4.
Returns:
Returns:
Returns:
Returns:
(setq Graduated[n] (add1 Graduated[n]) ) ) Returns:
Returns:
Here are examples of the map function at work.
Here is the link to the current function used in this example.
Here are a number of links to other related functions.
mapc(#void) | makeStructure(#void) |
Here are the links to the data types of the arguments used in this example. Here are a number of links to examples having similar argument types.
Structure
Analytic Information Server (AIS)AIS Component Systems
|