Name: Jhonson 2011-03-09 5:06
Can you help me write a program that finds what lowercase symbols are used most in a binary file?
import Data.Ix
import Data.Ord
import Data.List
import Control.Arrow
main =
interact $ intercalate "\n" . map (uncurry (++) . ((:" ") *** show)). reverse
. sortBy (comparing snd) . map (head &&& length)
. group . sort . filter (inRange ('a','z'))