haverer-0.3.0.0: Implementation of the rules of Love Letter

Safe HaskellNone
LanguageHaskell2010

Haverer.Internal.Counter

Documentation

data Counter k a Source

Instances

(Show k, Show a) => Show (Counter k a) Source 

increment :: (Ord k, Num a) => Counter k a -> k -> Counter k a Source

incrementMany :: (Ord k, Num a, Foldable m) => Counter k a -> m k -> Counter k a Source

initialize :: (Ord k, Num a) => [k] -> Counter k a Source

toList :: Ord k => Counter k a -> [(k, a)] Source

top :: (Ord k, Ord a, Eq a) => Counter k a -> (a, [k]) Source

topValue :: (Ord k, Ord a) => Counter k a -> a Source