Example NumMatrix map 010
|
Notes and Hints Note, in this example that a copy was made, and the argument {proc},
add1, was applied to each member in the copy of the NumMatrix.
The Scores NumMatrix 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:
(setq NewScores[n] (add1 NewScores[n]) ) )
Returns:
Returns:
Returns:
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) | new(#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.
NumMatrix
Analytic Information Server (AIS)AIS Component Systems
|