Node:dolist dotimes, Next:Recursion, Previous:while, Up:Loops & Recursion
In addition to
provide for looping. Sometimes these are quicker to write than the
while loop. Both are Lisp macros. (See Macros. )
dolist works like a
while loop that `CDRs down a
dolist automatically shortens the list each time it
loops--takes the CDR of the list--and binds the CAR of
each shorter version of the list to the first of its arguments.
dotimes loops a specific number of time: you specify the number.