Explorar el Código

Create a non working version of anagram builder

DricomDragon hace 5 años
padre
commit
e5460a0853
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7 0
      anagram.hs

+ 7 - 0
anagram.hs

@@ -0,0 +1,7 @@
+import Data.List
+
+sweep f l stack = case stack of
+	[] -> []
+	cur:substack -> concat [map (\l -> cur:l) (f (delete cur l)), sweep f l substack]
+
+ana l = sweep ana l l