3 ms·
Links explaining these Haskell code snippets: http://stackoverflow.com/a/10410997/578288 http://stackoverflow.com/a/10410997/578288 – the `map` snippet convert
by roryokane 14y ago
Links explaining these Haskell code snippets:
http://stackoverflow.com/a/10410997/578288 http://stackoverflow.com/a/10410997/578288 – the `map` snippet converts a flat list into a multiset represented as a list of `(count, element)` tuples
http://stackoverflow.com/a/5378799/578288 http://stackoverflow.com/a/5378799/578288 – the `filterM` snippet returns the powerset of its list argument (http://en.wikipedia.org/wiki/Power_set http://en.wikipedia.org/wiki/Power_set)