| Functions Documentation |
|
| Name |
map |
| Syntax |
(map list variable expression) -> list |
| Argument List |
list: input list to work on
variable: name to use for each element in list
expression: code to run on each list item |
| Returns |
list: input list modified by expression |
| Category |
list, 1.04
|
| Description |
Creates a new list made from the elements of the first list run through the expression |
| Example |
(map (list 1 2 3) it (add it 5))
Returns (6 7 8)
(setq outlist (list))
(enum (list 1 2 3) it
  (lnkAppend outlist (add 5 it))
)
outlist
What you'd have to do for the same result without map. |
| Comment |
General list managment and code simplification function. |