PPT Slide
ITERATION
Common Lisp provides looping functions.
dotimes
( dotimes (
count
parm
<
>
<
upper
bound
>
result
>
<
)
sequence of forms )
<
>
( dotimes ( i 10) ( print i ) )
0 1 2 3 4 5 6 7 8 9 NIL returned
dolist
( dolist (
<
>
<
>
>
<
element
parm
list
form
result
)
sequence of forms )
<
>
( dolist ( q ’( a b c ) ) ( print q ) )
A B C NIL returned
1.45
Previous slide
Next slide
Back to first slide
View graphic version