2 Loop Constructs

2.3 End-test control

The following loop keywords designate constructs that use a single test condition to determine when loop iteration should terminate:


The constructsalways,never, andthereis provide specific values to be returned when a loop terminates. Usingalways,never, orthereis with value-returning accumulation clauses can produce unpredictable results. In all other respects these constructs behave like thewhile anduntil constructs.

Theloop-finish Lisp macro can be used at any time to cause normal termination. In normal termination,finally clauses are executed and default return values are returned.

You can use end-test control constructs anywhere within the loop body. The termination conditions are tested in the order in which they appear.

2.3.1 - Reference pages

The Loop Facility - 9 SEP 1996

Generated with Harlequin WebMaker