core

package
v0.0.0-...-3022a63 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL