6 Iteration 6.1 The LOOP Facility 6.1.2 Variable Initialization and Stepping Clauses 126.96.36.199 Iteration Control
188.8.131.52.2 The for-as-in-list subclause
In the for-as-in-list subclause,
or as construct iterates over the contents of a
list. It checks for
the end of the list as if by using endp.
The variable var is bound to the successive elements of
the list in form1 before each
iteration. At the end of each iteration, the function step-fun
is applied to the list; the default value for step-fun is
The loop keywords in and by serve as valid prepositions in
The for or as construct causes termination when the
end of the list is reached.
184.108.40.206.2.1 Examples of for-as-in-list subclause
See cl:loop and the for-as-in-sequnce subclause for looping over sequences for a description of the additional for-as-in-sequence clause in Allegro CL.