How I understood monads, part 2/2: have we met before?
The first post in this series can be found here: http://weblogs.asp.net/bleroy/archive/2010/06/16/how-i-understood-monads-part-1-2-sleepless-and-self-loathing-in-seattle.aspx Last time , I tried to explain how beer and Lou helped me finally understand monads. I gave a couple of trivial examples. Hopefully now that you have this new functional hammer, everything will start looking like a nail. So let’s have a look at a few screws this time. Like last time, I’ll be pretty liberal with the definition of a monad as long as the spirit of monads seems to be preserved. Feel free to nitpick in the comments ;) Oh yeah, jQuery is a monad In jQuery, you first create a wrapped set of HTML elements and then execute operations on it, the result of which is
Read More...
Read the complete post at http://weblogs.asp.net/bleroy/archive/2010/06/29/how-i-understood-monads-part-2-2-have-we-met-before.aspx