Jump to content

Anagrams: Difference between revisions

→‎{{header|Haskell}}: make more clear
(→‎{{header|Haskell}}: make more clear)
Line 31:
f <- readFile "./../Puzzels/Rosetta/unixdict.txt"
let words = lines f
wix = groupBy (groupon fst) . sort $ zipWithzip ((,).map sort) words) words
mxl = foldl'maximum ((.length).max)$ 0map length wix
print . map (map snd) . filter ((==mxl).length) $ wix
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.