evaluate limit expression once
svn: r3868
This commit is contained in:
parent
09ae4070ea
commit
f322dffab5
|
@ -1842,8 +1842,9 @@
|
||||||
;;>> (dotimes (i n) body ...)
|
;;>> (dotimes (i n) body ...)
|
||||||
;;> Loop `n' times, evaluating the body when `i' is bound to 0,1,...,n-1.
|
;;> Loop `n' times, evaluating the body when `i' is bound to 0,1,...,n-1.
|
||||||
(defsubst* (dotimes [i n] body0 body ...)
|
(defsubst* (dotimes [i n] body0 body ...)
|
||||||
(let loop ([i 0])
|
(let ([n* n])
|
||||||
(when (< i n) body0 body ... (loop (add1 i)))))
|
(let loop ([i 0])
|
||||||
|
(when (< i n*) body0 body ... (loop (add1 i))))))
|
||||||
|
|
||||||
;;>> (dolist (x list) body ...)
|
;;>> (dolist (x list) body ...)
|
||||||
;;> Loop with `x' bound to elements of `list'.
|
;;> Loop with `x' bound to elements of `list'.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user