Get the latest tech news

Monads are like burritos (2009)


From the highly eclectic blog of Mark Dominus

At first I thought the choice of burritos was only a facetious reference to the peculiar and sometimes strained analogies these tutorials make. A monad must also possess a unit function that takes a regular value, such as a particular batch of meat, and turns it into a burrito. I asked Brent if this was actually what he had in mind when he first suggested the idea of tutorials explaining monads in terms of burritos, and if everyone else had understood this right away.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Monads

Monads

Photo of burritos

burritos