sets

package module
v0.0.0-...-35bea94 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 0 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StringSet

type StringSet struct {
	// contains filtered or unexported fields
}

func NewStringSet

func NewStringSet() *StringSet

func (*StringSet) Add

func (ss *StringSet) Add(vals ...string) *StringSet

func (*StringSet) Contains

func (ss *StringSet) Contains(other *StringSet) bool

func (*StringSet) ContainsElement

func (ss *StringSet) ContainsElement(val string) bool

func (*StringSet) Equals

func (ss *StringSet) Equals(other *StringSet) bool

Equals iff both sets contain the same items

func (*StringSet) List

func (ss *StringSet) List() []string

func (*StringSet) Remove

func (ss *StringSet) Remove(vals ...string) *StringSet

func (*StringSet) Subtract

func (ss *StringSet) Subtract(other *StringSet) *StringSet

Jump to

Keyboard shortcuts

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