Adds the items and counts in other
to the counts here.
Increment the count of object T by the specified value.
Increment the count of object T by 1.
Gets the count of the provided object.
Iterates over all the objects and their counts.
Iterates over all the objects and their counts.
Creates the map in which we store the counts.
Creates the map in which we store the counts.
(Changed in version 2.9.0) The behavior of scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
Gets the number of counts stored in this counter (sum over all count).
(Changed in version 2.9.0) transpose
throws an IllegalArgumentException
if collections are not uniformly sized.
(simpleCounter: MonadOps[(T, Long)]).filter(p)
(simpleCounter: MonadOps[(T, Long)]).flatMap(f)
(simpleCounter: MonadOps[(T, Long)]).map(f)
(simpleCounter: MonadOps[(T, Long)]).withFilter(p)
Super-simple class for counting occurrences of any kind of object. Will return zero for any item that has not been counted yet.