Anonymous user
Free polyominoes enumeration: Difference between revisions
+ note in Haskell entry
(+ slow D, slow Haskell, slow Python versions) |
(+ note in Haskell entry) |
||
Line 179:
=={{header|Haskell}}==
This Haskell solution is relatively slow, it's meant to be readable and as manifestly correct as possible.
Code updated and slightly improved from: http://www.haskell.org/haskellwiki/The_Monad.Reader/Issue5/Generating_Polyominoes
<lang haskell>import Data.List (sort)
import Data.Set (toList, fromList)
|