List is a monad
alexyorke.github.io·3w
Flag this post

Note July 6th 2025: this post’s original title was “A list is a monad”. It has been changed to “List is a monad”.

Note Sept 13 2025: this post has been revised based on the feedback from the Hacker News discussion.

The term “monad” is often invoked when describing patterns in functional programming. At the heart of monadic programming is sequencing computations, so each step can depend on the previous one while the monad threads context.

You may erroneously think all monads are containers, or burritos, or boxes. The simplest of monads can be idealized as a container (albeit a [flawed metaphor](https://byorgey.github.io/blog/posts/2025/06/16/monads-are…

Similar Posts

Loading similar posts...