projects
/
lambda.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
(no commit message)
[lambda.git]
/
state_monad_tutorial.mdwn
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 ->