2
(define true (λ (x y) x))
3
(define false (λ (x y) y))
6
(λ (cond true-λ-term false-λ-term)
7
((cond true-λ-term false-λ-term))))
9
(define display-boolean
11
(λ-if boolean (λ () (displayln "ok")) (λ () (displayln "fail")))))
13
(display-boolean false)
15
(define not (λ (x) (x false true)))
17
(display-boolean (not false))
19
(define and (λ (a b) (a b a)))
21
(display-boolean (and true true)) ; true
22
(display-boolean (and true false)) ; false
23
(display-boolean (and false true)) ; false
24
(display-boolean (and false false)) ; false
b'\\ No newline at end of file'