Skip to content

Commit e8e8962

Browse files
committed
up
1 parent a392bf9 commit e8e8962

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

examples/combinators.scm

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
(define (S x y z) ((x z) (y z)))
1+
(define (S f g x) ((f x) (g x)))
22
(define (K x y) x)
33
(define (I x) x)
44

55
(I)
66
(K I)
77
(S K I)
8+
9+
(define (C f x y) (f y x))
10+
(define (B f g x) (f (g x)))
11+
12+
(assert-equal (K I) (C K))

examples/combinators.scm.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
(lambda (x) x)
22
(lambda (y x) x)
3-
(lambda (z) z)
3+
(lambda (x) x)

0 commit comments

Comments
 (0)