projects
/
lambda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
40b8315
)
update week1 notes
author
Jim
<jim.pryor@nyu.edu>
Sun, 1 Feb 2015 07:53:49 +0000
(
02:53
-0500)
committer
Jim
<jim.pryor@nyu.edu>
Sun, 1 Feb 2015 07:53:49 +0000
(
02:53
-0500)
week1.mdwn
patch
|
blob
|
history
diff --git
a/week1.mdwn
b/week1.mdwn
index
3984eec
..
1765c6b
100644
(file)
--- a/
week1.mdwn
+++ b/
week1.mdwn
@@
-560,7
+560,7
@@
It may be helpful to contrast these recursive-style definitons to the way one wo
`empty? match` λ `xs.` *this definition left as an exercise*;
`tail match` λ `xs.` *this definition left as an exercise*;
`length match` λ `xs. let`
`empty? match` λ `xs.` *this definition left as an exercise*;
`tail match` λ `xs.` *this definition left as an exercise*;
`length match` λ `xs. let`
-
`n := 0;`
+ `n := 0;`
`while not (empty? xs) do`
`n := n + 1;`
`xs := tail xs`
`while not (empty? xs) do`
`n := n + 1;`
`xs := tail xs`