structure

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: GPL-3.0 Imports: 1 Imported by: 30

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CountMap added in v0.0.26

type CountMap[K comparable] interface {
	Set(K, int64)
	Add(K, int64)
	Subtract(K, int64)
	Get(K) int64
	GetAll() map[K]int64
	Contain(K) bool
	Remove(K)
	Clear()
}

func NewCountMap added in v0.0.26

func NewCountMap[K comparable]() CountMap[K]

type MultiMap added in v0.0.24

type MultiMap[K comparable, V any] interface {
	Add(K, ...V)
	Get(K) []V
	Size(K) int
	GetAll() map[K][]V
	Contain(K) bool
	Remove(K)
	Clear()
}

func NewMultiMap added in v0.0.24

func NewMultiMap[K comparable, V any]() MultiMap[K, V]

type Set

type Set[T comparable] interface {
	Add(...T)
	Contain(...T) bool
	Remove(...T)
	Clear()
}

func NewSet

func NewSet[T comparable]() Set[T]

Jump to

Keyboard shortcuts

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