set

package
v5.27.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 License: Apache-2.0 Imports: 1 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]) AddSlice added in v5.27.0

func (s *Set[E]) AddSlice(slice []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

func (*Set[E]) Values

func (s *Set[E]) Values() []E

Jump to

Keyboard shortcuts

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