hashset

package
v0.0.0-...-2bc3700 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashSet

type HashSet[T comparable] struct {
	// contains filtered or unexported fields
}

func New

func New[T comparable]() *HashSet[T]

func (*HashSet[T]) Add

func (s *HashSet[T]) Add(v T) bool

func (*HashSet[T]) Contains

func (s *HashSet[T]) Contains(v T) bool

func (*HashSet[T]) Delete

func (s *HashSet[T]) Delete(v T)

func (*HashSet[T]) Keys

func (s *HashSet[T]) Keys() []T

type StrHashSet

type StrHashSet = HashSet[string]

func NewStrHashSet

func NewStrHashSet() *StrHashSet

Jump to

Keyboard shortcuts

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