projects
/
lambda.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cps tweaks
[lambda.git]
/
cps_and_continuation_operators.mdwn
diff --git
a/cps_and_continuation_operators.mdwn
b/cps_and_continuation_operators.mdwn
index
3b0dda7
..
4fcf5e0
100644
(file)
--- a/
cps_and_continuation_operators.mdwn
+++ b/
cps_and_continuation_operators.mdwn
@@
-432,8
+432,9
@@
Example 2:
# Continuation_monad.(run0(
reset (
abort 1 >>= fun i ->
# Continuation_monad.(run0(
reset (
abort 1 >>= fun i ->
- unit (10+i)) >>= fun j ->
- unit (100+j)));;
+ unit (10+i)
+ ) >>= fun j ->
+ unit (100+j)));;
- : int = 101
Example 3:
- : int = 101
Example 3: