haverer-0.3.0.0: Implementation of the rules of Love Letter
Haverer.Internal.Counter
data Counter k a Source
Instances
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