(cond) now expands to #f if no clause matches

This commit is contained in:
Justin Ethier 2015-06-24 21:44:55 -04:00
parent 83e0a6e662
commit 321995c914
2 changed files with 2 additions and 1 deletions

View file

@ -9,4 +9,5 @@
;(else #t)
)
;)
1

View file

@ -51,7 +51,7 @@
(cons 'cond
(lambda (expr rename compare)
(if (null? (cdr expr))
(if #f #f)
#f ;(if #f #f)
((lambda (cl)
(if (compare (rename 'else) (car cl))
(if (pair? (cddr expr))