Created
November 7, 2019 21:55
-
-
Save chelseatroy/0def8e5beb78522b5efd1767af3ab471 to your computer and use it in GitHub Desktop.
Predicate of a Conditional
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 (seval-if sexp env) | |
(let ((test (if-test sexp)) | |
(then-clause (if-then-clause sexp)) | |
(else-clause (if-else-clause sexp))) | |
(if (actual-value test env) | |
(seval then-clause env) | |
(seval else-clause env)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment