unordered-containers-0.2.1.0: Efficient hashing-based container types
Data.HashMap.PopCount
Synopsis
popCount :: Bits a => a -> Int
Return the number of set bits in the argument. This number is known as the population count or the Hamming weight.