For Clauses
Loop Facility
Accumulation Clauses
Aside from for
clauses, there are several other loop clauses
that control the way the loop operates. They might be used by
themselves, or in conjunction with one or more for
clauses.
repeat integer
|
This clause simply counts up to the specified number using an internal temporary variable. The loops
are identical except that the second one forces you to choose a name for a variable you aren't actually going to use. |
while condition
|
This clause stops the loop when the specified condition (any Lisp
expression) becomes
|
until condition
|
This clause stops the loop when the specified condition is true,
i.e., non- |
always condition
|
This clause stops the loop when the specified condition is
|
never condition
|
This clause is like |
thereis condition
|
This clause stops the loop when the specified form is non- |