/ Published in: Other
haskell
Expand |
Embed | Plain Text
import List genTags tags = (unwords.map (\(x, y) -> "<font size=" ++ show (min (1 + y*5 `div` mx) 5) ++ "/>" ++ x ++ "</font>")) ws where mx = (maximum.map snd) ws ws = (map (\x->(head x, length x)).group.sort.words.unwords) tags
You need to login to post a comment.
