Textonyms: Difference between revisions
m
→{{header|Haskell}}
Line 928:
codeGroups = groupBy (on (==) snd) . sortOn snd $ encodings
textonyms = filter ((1 <) . length) codeGroups
digitCount = length . snd . head
[ambiguous, longer] =
[take 5 . flip sortBy textonyms] <*>
(flip . comparing <$> [length,
[wa, wl] = maximum . map
mapM_ putStrLn $
[ "There are " ++
|