Created
March 12, 2015 02:27
-
-
Save kouddy/731205331c53b043f3b4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(define (iterative-improve good-enough? improve) | |
(define (try guess) | |
(let ((next (improve guess))) | |
(if (good-enough? guess next) | |
next | |
(try next)))) | |
(lambda (first-guess) (try first-guess))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment