projects
/
lambda.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(no commit message)
[lambda.git]
/
assignment1.mdwn
diff --git
a/assignment1.mdwn
b/assignment1.mdwn
index
12cd705
..
b65cc17
100644
(file)
--- a/
assignment1.mdwn
+++ b/
assignment1.mdwn
@@
-27,19
+27,21
@@
In Racket, these can be defined like this:
(define false (lambda (t) (lambda (f) f)))
* Define a "neg" operator that negates "true" and "false".
(define false (lambda (t) (lambda (f) f)))
* Define a "neg" operator that negates "true" and "false".
+
Expected behavior:
Expected behavior:
- (((neg true) 10) 20)
+ (((neg true) 10) 20)
evaluates to 20, and
evaluates to 20, and
- (((neg false) 10) 20)
+ (((neg false) 10) 20)
evaluates to 10.
* Define an "and" operator.
* Define an "xor" operator.
evaluates to 10.
* Define an "and" operator.
* Define an "xor" operator.
+
(If you haven't seen this term before, here's a truth table:
true xor true = false
(If you haven't seen this term before, here's a truth table:
true xor true = false