PPT Slide
LOOP
( loop < sequence of forms > )
where one form is ( return < val > )
( loop
( when ( null L ) ( return NIL ) )
( print ( car L ) )
( setf L ( cdr L ) )
)
-- loops can be more efficient
-- people like loops
-- but they involve assignment and thus side effects
a
b
c
L
L
L
NIL
L
1.44
Previous slide
Next slide
Back to first slide
View graphic version