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:
e5df41e
)
ass5: tweaks
author
Jim Pryor
<profjim@jimpryor.net>
Tue, 26 Oct 2010 14:49:31 +0000
(10:49 -0400)
committer
Jim Pryor
<profjim@jimpryor.net>
Tue, 26 Oct 2010 14:49:31 +0000
(10:49 -0400)
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
assignment5.mdwn
patch
|
blob
|
history
diff --git
a/assignment5.mdwn
b/assignment5.mdwn
index
d73dc0e
..
a79df5f
100644
(file)
--- a/
assignment5.mdwn
+++ b/
assignment5.mdwn
@@
-185,7
+185,7
@@
We can write functions like map:
= λf :σ → τ. λl:σ list. l [τ list] nilτ (λx:σ. λy:τ list. consτ (f x) y
**Excercise** convert this function to OCaml. Also write an `append` function.
-Also write a **head** function. Test with simple lists.
+Also write a **head** function.
Also write nil???
Test with simple lists.
Consider the following simple binary tree type: