What exactly is a Monad?

Posted by WeNeedAnswers on Stack Overflow See other posts from Stack Overflow or by WeNeedAnswers
Published on 2010-03-23T15:38:56Z Indexed on 2010/03/23 15:43 UTC
Read the original article Hit count: 310

Filed under:
|
|

Can someone please explain to me what a Monad is. I think I grasp Monoids and I grasp that they basically control the input of state into a system.

I just look at the text in Haskell and glaze over. A simple example in python would be great.

My current understanding is that a Monoid is a procedural piece of code that needs to be read from top to bottom in sequence with the output being the input for the function.

I think that I may even got that wrong, but hey I am here to learn.

© Stack Overflow or respective owner

Related posts about haskell

Related posts about python