User Tools

Site Tools


ch2_1_dolist

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ch2_1_dolist [2021/05/12 10:42] – created adminch2_1_dolist [2022/02/20 05:05] (current) admin
Line 1: Line 1:
 **''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.
ch2_1_dolist.1620837760.txt.gz · Last modified: 2021/05/12 10:42 by admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki