Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ask HN: ELI5 What Is a Monad?. Parent comment
"A value in a box" is more like a metaphor for a functor.
The key part about monads is that you can "merge the boxes" (to strain the analogy). Or, as I'd prefer to think about it, to merge different effects.
There are no comments on this comment yet.
"A value in a box" is more like a metaphor for a functor.
The key part about monads is that you can "merge the boxes" (to strain the analogy). Or, as I'd prefer to think about it, to merge different effects.