projects
/
lambda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b304e0
)
tweak diagram
author
jim
<jim@web>
Sun, 22 Mar 2015 16:17:20 +0000
(12:17 -0400)
committer
Linux User
<ikiwiki@localhost.members.linode.com>
Sun, 22 Mar 2015 16:17:20 +0000
(12:17 -0400)
topics/week7_introducing_monads.mdwn
patch
|
blob
|
history
diff --git
a/topics/week7_introducing_monads.mdwn
b/topics/week7_introducing_monads.mdwn
index
0e9ab56
..
840521a
100644
(file)
--- a/
topics/week7_introducing_monads.mdwn
+++ b/
topics/week7_introducing_monads.mdwn
@@
-393,11
+393,13
@@
This example is a good intuitive basis for thinking about the notions of `mbind`
Some a >>=<sub>α option</sub> (\a -> Some 0) ==> Some 0
None >>=<sub>α option</sub> (\a -> Some 0) ==> None
- . _____
- / \ . / \
- . 3 >>=<sub>(α,unit) tree</sub> (\a -> / \ ) ==> _/_ .
- / \ a a / \ / \
-1 2 . . 3 3
+ .
+ / \
+ . / \
+ / \ . . \
+ . 3 >>=<sub>(α,unit) tree</sub> (\a -> / \ ) ==> / \ .
+ / \ a a / \ / \
+1 2 . . 3 3
/ \ / \
1 1 2 2
</pre>