Skip to content

Instantly share code, notes, and snippets.

@ryanbriones
Forked from jimweirich/gist:189259
Created September 25, 2009 04:02
Show Gist options
  • Save ryanbriones/193291 to your computer and use it in GitHub Desktop.
Save ryanbriones/193291 to your computer and use it in GitHub Desktop.
SICP Exercise 1.6
;; SICP 1.6
;; Fork me. Solve me.
;; if is a special form that only evaluates the arguments after the predicate has been evaluated.
;; since new-if evaluates it's arguments immediately, the program is sent into an infinite loop
;; evaluating sqrt-iter with an improved guess
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment