Created
September 3, 2008 15:27
-
-
Save BaseCase/8612 to your computer and use it in GitHub Desktop.
This file contains 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
;Exercise 1.5 - Applicative vs normal-order evaluation. | |
;given this code: | |
(define (p) (p)) | |
(define (test x y) | |
(if (= x 0) | |
0 | |
y)) | |
;what happens when we evaluate this? | |
(test 0 (p)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment