Re:From design patterns to category theory
by crimsonalucard on Monday October 09, 2017 @02:38PM
(#15436315)
You're probably use to Monads that wrap a single object, like the maybe monad. Monads can wrap multiple objects or anything. This is the case for a list.
But I can't make sense of the definition of >>= for the list in Haskell, which is:
It seems to imply that I get a list in return when I do xs >>= f, but I need to do the following in order for it to work: