Anagrams: Difference between revisions
Content deleted Content added
m →{{header|Java}}: oops missed one line of output |
added sample output |
||
Line 7:
import Data.List
groupon f x y =
main = do
Line 16:
print . map (map snd) . filter ((==mxl).length) $ wix
</pre>
Sample output:
<pre>
*Main> main
[["abel","able","bale","bela","elba"],
["caret","carte","cater","crate","trace"],
["angel","angle","galen","glean","lange"],
["alger","glare","lager","large","regal"],
["elan","lane","lean","lena","neal"],
["evil","levi","live","veil","vile"]]
</pre>
|