Free polyominoes enumeration: Difference between revisions
Content added Content deleted
(+ slow D, slow Haskell, slow Python versions) |
(+ note in Haskell entry) |
||
Line 179: | Line 179: | ||
=={{header|Haskell}}== |
=={{header|Haskell}}== |
||
This Haskell solution is relatively slow, it's meant to be readable and as manifestly correct as possible. |
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) |
<lang haskell>import Data.List (sort) |
||
import Data.Set (toList, fromList) |
import Data.Set (toList, fromList) |