Mercurial > repo
view wisdom/monad_tutorials @ 1445:d51f808451cf
<GreyKnight> echo "A monad is just a label that you stick onto a value to tell the compiler it\'s not a pure functional value." >> wisdom/monad_tutorials
author | HackBot |
---|---|
date | Sat, 12 Jan 2013 01:09:39 +0000 |
parents | f22735ad62b3 |
children |
line wrap: on
line source
Monads can be used like adapters (the adapter pattern) in OOP. A Monad is a class with a private field. A monad is just a label that you stick onto a value to tell the compiler it's not a pure functional value.