projects
/
lambda.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more assignment1 tweaks
[lambda.git]
/
assignment1.mdwn
diff --git
a/assignment1.mdwn
b/assignment1.mdwn
index
9bb65b3
..
a8981cf
100644
(file)
--- a/
assignment1.mdwn
+++ b/
assignment1.mdwn
@@
-17,8
+17,8
@@
Booleans
Recall our definitions of true and false.
Recall our definitions of true and false.
->
"true" defined to be `\t \f. t`
->
"false"
defined to be `\t \f. f`
+>
`true` defined to be `\t \f. t`
+>
`false`
defined to be `\t \f. f`
In Racket, these can be defined like this:
In Racket, these can be defined like this:
@@
-26,7
+26,7
@@
In Racket, these can be defined like this:
(define false (lambda (t) (lambda (f) f)))
<OL start=8>
(define false (lambda (t) (lambda (f) f)))
<OL start=8>
-<LI>Define a
"neg" operator that negates "true" and "false"
.
+<LI>Define a
`neg` operator that negates `true` and `false`
.
Expected behavior:
Expected behavior:
@@
-38,9
+38,9
@@
evaluates to 20, and
evaluates to 10.
evaluates to 10.
-<LI>Define an
"and"
operator.
+<LI>Define an
`and`
operator.
-<LI>Define an
"xor"
operator.
+<LI>Define an
`xor`
operator.
(If you haven't seen this term before, here's a truth table:
(If you haven't seen this term before, here's a truth table: