RosettaCodeData/Task/Vigen-re-cipher-Cryptanalysis/Haskell/vigen-re-cipher-cryptanalysis-2.hs

5 lines
128 B
Haskell
Raw Permalink Normal View History

2017-09-23 10:01:46 +02:00
import Data.Map (fromListWith, toList)
main =
mapM_ print (toList (fromListWith (+) (flip (,) 1 <$> filter (' ' /=) crypt)))