projects
/
lambda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16e6d70
)
# use
author
Jim Pryor
<profjim@jimpryor.net>
Mon, 13 Dec 2010 01:59:55 +0000
(20:59 -0500)
committer
Jim Pryor
<profjim@jimpryor.net>
Mon, 13 Dec 2010 01:59:55 +0000
(20:59 -0500)
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
state_monad_tutorial.mdwn
patch
|
blob
|
history
diff --git
a/state_monad_tutorial.mdwn
b/state_monad_tutorial.mdwn
index
d878edc
..
b15ac29
100644
(file)
--- a/
state_monad_tutorial.mdwn
+++ b/
state_monad_tutorial.mdwn
@@
-95,7
+95,7
@@
If we wanted to work with one of the encapsulation techniques described above, w
Here is how you'd have to do it using our OCaml monad library:
- # use "path/to/monads.ml";;
+ #
#
use "path/to/monads.ml";;
# module S = State_monad(struct type store = store' end);;
# let increment_store'' : ('x,'a) S.m =
S.(get >>= fun cur ->