dotimes
Used to iterate over a some number of consecutive integers
(dotimes (I 5)
(print I))
(setq lunch (list 'apples 'oranges 'pears))
(dotimes (i (length lunch))
(print (nth i lunch)))
Previous slide
Next slide
Back to first slide
View graphic version