HashSet

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket[E comparable] struct {
	// contains filtered or unexported fields
}

type HashSet

type HashSet[E comparable] struct {
	Seed Go_Utils.Hasher
	// contains filtered or unexported fields
}

func New

func New[E comparable](h byte, size, seed uint) *HashSet[E]

func (*HashSet[E]) Has

func (u *HashSet[E]) Has(e E) bool

func (*HashSet[E]) Put

func (u *HashSet[E]) Put(e E) bool

func (*HashSet[E]) Range

func (u *HashSet[E]) Range(f func(E) bool)

func (*HashSet[E]) Remove

func (u *HashSet[E]) Remove(e E) bool

func (*HashSet[E]) Size

func (u *HashSet[E]) Size() uint

func (*HashSet[E]) Take

func (u *HashSet[E]) Take() (e E)

Jump to

Keyboard shortcuts

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