HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by jdmg94 | Hacker News Reader
Full thread
jdmg94
·
You use JS Promises? That’s a monad
View on HN
rolandpeelen
·
I’m afraid they aren’t as both ‘map’ and ‘flatmap’ are defined as a single function; ‘then’ (so it won’t hold true to the monad laws).
Reply on news.ycombinator.com