projects
/
lambda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
62596aa
)
edits
author
Chris
<chris.barker@nyu.edu>
Sat, 14 Mar 2015 18:17:34 +0000
(14:17 -0400)
committer
Chris
<chris.barker@nyu.edu>
Sat, 14 Mar 2015 18:17:34 +0000
(14:17 -0400)
exercises/_assignment6.mdwn
patch
|
blob
|
history
diff --git
a/exercises/_assignment6.mdwn
b/exercises/_assignment6.mdwn
index
e68d3f1
..
9a3d04c
100644
(file)
--- a/
exercises/_assignment6.mdwn
+++ b/
exercises/_assignment6.mdwn
@@
-97,11
+97,13
@@
those places working that you can use the code to evaluate terms.
6. A snag: what happens when we want to replace a variable with a term
that itself contains a free variable?
6. A snag: what happens when we want to replace a variable with a term
that itself contains a free variable?
- term environment
- ------------- -------------
- (\w.(\y.y)w)2 []
- (\y.y)w [w->2]
- y [w->2, y->w]
+<pre>
+term environment
+------------- -------------
+(\w.(\y.y)w)2 []
+(\y.y)w [w->2]
+y [w->2, y->w]
+</pre>
In the first step, we bind `w` to the argument `2`. In the second
step, we bind `y` to the argument `w`. In the third step, we would
In the first step, we bind `w` to the argument `2`. In the second
step, we bind `y` to the argument `w`. In the third step, we would