Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Show HN: React-Most – Declarative Monadic Reactive State Container for React. Parent comment
To do this, it must implement two functions. 1. chain (also called 'flatMap', '>>=' in haskell). 2. unit (sometimes called 'of', for instance in js).
Nothing more is needed to understand and implement a monad in any language.
[1] https://wiki.haskell.org/Monad_laws
There are no comments on this comment yet.
To do this, it must implement two functions. 1. chain (also called 'flatMap', '>>=' in haskell). 2. unit (sometimes called 'of', for instance in js).
Nothing more is needed to understand and implement a monad in any language.
[1] https://wiki.haskell.org/Monad_laws