Textonyms: Difference between revisions
Content added Content deleted
Line 928: | Line 928: | ||
codeGroups = groupBy (on (==) snd) . sortOn snd $ encodings |
codeGroups = groupBy (on (==) snd) . sortOn snd $ encodings |
||
textonyms = filter ((1 <) . length) codeGroups |
textonyms = filter ((1 <) . length) codeGroups |
||
mapM_ |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
[ "There are " ++ |
[ "There are " ++ |
||
show (length encodings) ++ |
show (length encodings) ++ |
||
Line 943: | Line 938: | ||
, show (length textonyms) ++ " digit combinations represent textonyms." |
, show (length textonyms) ++ " digit combinations represent textonyms." |
||
, "" |
, "" |
||
] |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
mapM_ putStrLn $ |
|||
⚫ | |||
fmap (showTextonym wa) ambiguous ++ |
fmap (showTextonym wa) ambiguous ++ |
||
"" : "Five longest:" : fmap (showTextonym wl) longer |
|||
------------------------- DISPLAY -------------------------- |
------------------------- DISPLAY -------------------------- |