Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FreqCounter ¶
type FreqCounter struct {
// contains filtered or unexported fields
}
func NewFreqCounter ¶
func NewFreqCounter() *FreqCounter
func (*FreqCounter) Add ¶
func (fc *FreqCounter) Add(v interface{}) interface{}
Add increases the count for v and returns it if the count was 0 or non-existent before it.
func (*FreqCounter) Remove ¶
func (fc *FreqCounter) Remove(v interface{}) interface{}
Remove decreases the count for v and returns it if the count reaches 0
func (*FreqCounter) Reset ¶
func (fc *FreqCounter) Reset()
func (*FreqCounter) TotalFreq ¶
func (fc *FreqCounter) TotalFreq() uint64
func (*FreqCounter) Values ¶
func (fc *FreqCounter) Values() map[interface{}]uint64
Directories
¶
| Path | Synopsis |
|---|---|
|
Package generic contains stream processing functions that * can be called on any kind of data types.
|
Package generic contains stream processing functions that * can be called on any kind of data types. |
|
Package numeric contains stream processing functions that * can be called on numeric data types.
|
Package numeric contains stream processing functions that * can be called on numeric data types. |
|
package sort defines various sorting algorithms for stream * data.
|
package sort defines various sorting algorithms for stream * data. |
Click to show internal directories.
Click to hide internal directories.