X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=topics%2F_week8_reader_monad.mdwn;h=2e7ede8ac5bdf8b8d9ee9565a67a57e0b6fcce4a;hp=86866db235e17782d11f4c8780519683a58352f5;hb=d1b82e795c985012df8298926eec35b5a2cc49b6;hpb=5d1eff367c981df72cc069b4c04a4bf3f7b58536 diff --git a/topics/_week8_reader_monad.mdwn b/topics/_week8_reader_monad.mdwn index 86866db2..2e7ede8a 100644 --- a/topics/_week8_reader_monad.mdwn +++ b/topics/_week8_reader_monad.mdwn @@ -318,6 +318,7 @@ is the ⧠and the map2 function from the notes on safe division: Then we lift the entire computation into the monad by applying ⧠to the integers, and by applying `map1` to the operators: +
\tree ((((map2 +) (â§1)) (((map2 *) (((map2 /) (â§6)) (â§0))) (â§4)))) ___________________ @@ -331,6 +332,7 @@ map2 + â§1 _____|_____ â§4 ___|____ â§0 | | map2 / â§6 +With these adjustments, the faulty computation now completes smoothly: