Documentation
¶
Index ¶
- type Counter
- func (c *Counter) Clear()
- func (c *Counter) Copy()
- func (c *Counter) Elements()
- func (c *Counter) FromKeys()
- func (c *Counter) Get()
- func (c *Counter) Items() *map[interface{}]interface{}
- func (c *Counter) Keys()
- func (c *Counter) MostCommon()
- func (c *Counter) Pop()
- func (c *Counter) PopItem()
- func (c *Counter) SetDefault()
- func (c *Counter) Subtract()
- func (c *Counter) Update()
- func (c *Counter) Values()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
Counter is used to count hashable items, Sometimes called a bag or multiset. Elements are stored as dictionary keys and their counts are stored as dictionary values.
func NewCounter ¶
func NewCounter(item interface{}) *Counter
func NewNullCounter ¶
func NewNullCounter() *Counter
func (*Counter) MostCommon ¶
func (c *Counter) MostCommon()
func (*Counter) SetDefault ¶
func (c *Counter) SetDefault()
Click to show internal directories.
Click to hide internal directories.