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]
/
topics
/
_week8_reader_monad.mdwn
diff --git
a/topics/_week8_reader_monad.mdwn
b/topics/_week8_reader_monad.mdwn
index
d49f837
..
b48a4c4
100644
(file)
--- a/
topics/_week8_reader_monad.mdwn
+++ b/
topics/_week8_reader_monad.mdwn
@@
-149,7
+149,7
@@
is the ⇧ and the map2 function from the notes on safe division:
| Some y -> Some (g x y));;
Then we lift the entire computation into the monad by applying ⇧ to
| Some y -> Some (g x y));;
Then we lift the entire computation into the monad by applying ⇧ to
-the integers, and by applying `map
1
` to the operators:
+the integers, and by applying `map
2
` to the operators:
<pre>
\tree ((((map2 +) (⇧1)) (((map2 *) (((map2 /) (⇧6)) (⇧0))) (⇧4))))
<pre>
\tree ((((map2 +) (⇧1)) (((map2 *) (((map2 /) (⇧6)) (⇧0))) (⇧4))))