←back to thread

A list is a monad

(alexyorke.github.io)
153 points polygot | 1 comments | | HN request time: 0s | source
Show context
drumnerd ◴[] No.44447662[source]
A monad is not a container! It’s a way of composing functions if they have an effect. You tell how to inject a value in that effect (unit) and how to compose two functions that have that effect and that’s it: programmable semicolons.
replies(2): >>44448074 #>>44448492 #
1. mrkeen ◴[] No.44448074[source]
And in the article's case, 'have an effect' means 'be a list'.