Created
November 7, 2019 21:58
-
-
Save chelseatroy/e6fe17aee7327dbb3c08a4e25108d589 to your computer and use it in GitHub Desktop.
When to Evaluate
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 (force-it obj) | |
(if (thunk? obj) | |
(actual-value (thunk-exp obj) (thunk-env obj)) | |
obj)) | |
(define (actual-value sexp env) | |
(force-it (seval sexp env))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment