set

package
v5.36.2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: Apache-2.0 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[E comparable] struct {
	// contains filtered or unexported fields
}

func New

func New[E comparable]() *Set[E]

func NewWithValues

func NewWithValues[E comparable](values ...E) *Set[E]

func (*Set[E]) Add

func (s *Set[E]) Add(v E)

func (*Set[E]) AddSeq added in v5.35.0

func (s *Set[E]) AddSeq(seq iter.Seq[E])

func (*Set[E]) All added in v5.35.0

func (s *Set[E]) All() iter.Seq[E]

func (*Set[E]) Contains

func (s *Set[E]) Contains(v E) bool

func (*Set[E]) Delete

func (s *Set[E]) Delete(v E)

func (*Set[E]) Empty

func (s *Set[E]) Empty() bool

Jump to

Keyboard shortcuts

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