set

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Set

type Set[K comparable] struct {
	// contains filtered or unexported fields
}

func New

func New[K comparable]() Set[K]

func (*Set[K]) Add

func (this *Set[K]) Add(el K) bool

func (Set[K]) Contains

func (this Set[K]) Contains(el K) bool

func (Set[K]) Len

func (this Set[K]) Len() int

func (*Set[K]) Merge added in v0.3.1

func (this *Set[K]) Merge(other Set[K])

func (*Set[K]) Remove

func (this *Set[K]) Remove(el K) bool

func (Set[K]) Seq added in v0.2.0

func (this Set[K]) Seq() iter.Seq[K]

Jump to

Keyboard shortcuts

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