Browse Source

Try to fix my own function but still does'nt work

DricomDragon 5 years ago
parent
commit
2653b1013f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      anagram.hs

+ 1 - 1
anagram.hs

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