Skip to content

Commit 2a70681

Browse files
committed
c4 4
1 parent 41586e6 commit 2a70681

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/eval/c4_4.scm

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
; and as special forms
3+
; the same goes for or
4+
(define (eval-and exp env)
5+
(define (iter exps)
6+
(cond ((null? exp) #t)
7+
((not (seck-eval (car exp) env)) #f)
8+
(else
9+
(iter (cdr exp) env))))
10+
(iter (cdr exp)))
11+
12+
13+
; see and/or as derived expressions in eval.scm

0 commit comments

Comments
 (0)