/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
A list is a monad
(alexyorke.github.io)
153 points
polygot
| 1 comments |
29 Jun 25 17:53 UTC
|
HN request time: 0s
|
source
Show context
drumnerd
◴[
02 Jul 25 19:12 UTC
]
No.
44447662
[source]
▶
>>44414965 (OP)
#
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
◴[
02 Jul 25 19:52 UTC
]
No.
44448074
[source]
▶
>>44447662
#
And in the article's case, 'have an effect' means 'be a list'.
ID:
GO
↑