chasing infinite loop

This commit is contained in:
Danny Yoo 2011-09-12 12:21:34 -04:00
parent 38cb67a63c
commit a1660fb5cb

View File

@ -21,7 +21,7 @@
updated-view]))
(define (iterate n f x)
(if (= n 0)
(if (<= n 0)
x
(iterate (sub1 n ) f (f x))))