[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.8 Iteration

Special Form: do ((variable init [step]) ...) (test expr ...) body ...
[R5RS]

Special Form: let name bindings body ...
[R5RS]

Macro: dotimes (variable limit [result]) body ...
Macro: dolist (variable lexpr [result]) body ...
Imported from Common Lisp. These are equivalent to the following forms, respectively.
 
(dotimes (variable limit result) body ...)
==>
(do ((tlimit limit)
     (variable 0 (+ variable 1)))
    ((>= variable tlimit) result)
  body ...)

(dolist (variable lexpr result) body ...)
==>
(begin
  (for-each (lambda (variable) body ...) lexpr)
  (let ((variable '())) result))



This document was generated by Ken Dickey on November, 28 2002 using texi2html