|
Example Matrix map 007
|
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 Matrix.
The Scores Matrix 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(Matrix) | new(Matrix) |
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.
Matrix
|
How do I contact the AIS Server team?You can always talk with the AIS at aiserver.sourceforge.net. |