What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-17 19:23:20
either function monad in javascript
class Monad { // pure :: a -> M a pure = () => { throw "pure method needs to be implemented" } // flatMap :: # M a -> (a -> M b) -> M b flatMap = (x) => { throw "flatMap method needs to be implemented" } ... Add solution -
Other 2021-11-03 16:35:09
$ in haskell
-- Functors are a class of data structure that "contain" a generic type -- you can "inject" functions inside these functors with `fmap` -- Applying a function "inside" of a functor will not change the structure -- of the fun... Add solution
Best helpers
Ranking is empty