|
|
|
|
|
by chriswarbo
3942 days ago
|
|
> So for a list monad bind = flatMap fmap = map > is that correct? Yes, although Haskell calls "flatMap" "concatMap". Of course "return" is just "\x -> [x]", AKA "(: [])". Instead of bind (">>="), you can implement Monads using "join" instead. For lists, "join" is simply "concat". |
|