unordered-containers-0.2.1.0: Efficient hashing-based container types

Safe HaskellSafe-Infered

Data.HashMap.PopCount

Synopsis

Documentation

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.