chasing infinite loop
This commit is contained in:
parent
38cb67a63c
commit
a1660fb5cb
|
@ -21,7 +21,7 @@
|
||||||
updated-view]))
|
updated-view]))
|
||||||
|
|
||||||
(define (iterate n f x)
|
(define (iterate n f x)
|
||||||
(if (= n 0)
|
(if (<= n 0)
|
||||||
x
|
x
|
||||||
(iterate (sub1 n ) f (f x))))
|
(iterate (sub1 n ) f (f x))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user