projects
/
lambda.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
week11 tweaks
[lambda.git]
/
coroutines_and_aborts.mdwn
diff --git
a/coroutines_and_aborts.mdwn
b/coroutines_and_aborts.mdwn
index
ff75eff
..
4c3861f
100644
(file)
--- a/
coroutines_and_aborts.mdwn
+++ b/
coroutines_and_aborts.mdwn
@@
-70,7
+70,7
@@
Here is how you can extract the components of a labeled record:
match test with
| {height = h; weight = w; char_tester = test} ->
match test with
| {height = h; weight = w; char_tester = test} ->
- (*
go on to use h, w, and test ...
*)
+ (*
same as preceding
*)
Anyway, using record types, we might define the tree zipper interface like so:
Anyway, using record types, we might define the tree zipper interface like so:
@@
-324,7
+324,7
@@
the effect is for the program to immediately stop. That's not exactly true. You
;;
val foo : int -> int = <fun>
# foo 1;;
;;
val foo : int -> int = <fun>
# foo 1;;
- - : int = 10
+ - : int = 1
1
0
# foo 2;;
- : int = 20
# foo 3;;
# foo 2;;
- : int = 20
# foo 3;;