hashtable

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2023 License: CC0-1.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Table

type Table[K comparable, V any] struct {
	// contains filtered or unexported fields
}

func New

func New[K comparable, V any](size uint64, hasher func(K) uint64) *Table[K, V]

func (*Table[K, V]) Delete

func (t *Table[K, V]) Delete(key K)

func (*Table[K, V]) Insert

func (t *Table[K, V]) Insert(key K, value V)

func (*Table[K, V]) Lookup

func (t *Table[K, V]) Lookup(key K) (value V, ok bool)

Jump to

Keyboard shortcuts

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