Differences
This shows you the differences between two versions of the page.
| |
ch2_1_dolist [2021/05/12 10:42] – created admin | ch2_1_dolist [2022/02/20 05:05] (current) – admin |
---|
**''DOLIST''** | **''DOLIST''** |
| |
Classic Lisp list iteration macro, implemented as special form in LabLisp. Expects at least one argument, which must be properly formed list: First element is a plain symbol, which will be the iterator variable. Second element must evaluate to proper list. There might be optional third element, the result form - single expression which will be evaluated after the looping is finished. If there is no result expression, the ''DOLIST'' form returns ''NIL''. | Classic LISP list iteration macro, implemented as special form in LabLISP. Expects at least one argument, which must be properly formed list: First element is a plain symbol, which will be the iterator variable. Second element must evaluate to proper list. There might be optional third element, the result form - single expression which will be evaluated after the looping is finished. If there is no result expression, the ''DOLIST'' form returns ''NIL''. |
| |
After the initializer list, there can be any number of expressions (implicit ''PROGN''), which will be evaluated repeatedly in loop. | After the initializer list, there can be any number of expressions (implicit ''PROGN''), which will be evaluated repeatedly in loop. |