set

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IntSet

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

func NewIntSet

func NewIntSet() *IntSet

func NewIntSetWithValues

func NewIntSetWithValues(vals []int) *IntSet

func (*IntSet) Add

func (s *IntSet) Add(val int) *IntSet

func (*IntSet) AddAll

func (s *IntSet) AddAll(vals []int) *IntSet

func (*IntSet) Clear

func (s *IntSet) Clear()

func (*IntSet) Contains

func (s *IntSet) Contains(val int) bool

func (*IntSet) Len

func (s *IntSet) Len() int

func (*IntSet) Range

func (s *IntSet) Range(fn func(val int))

func (*IntSet) Remove

func (s *IntSet) Remove(val int)

func (*IntSet) ToArray

func (s *IntSet) ToArray() []int

type StringSet

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

func NewStringSet

func NewStringSet() *StringSet

func NewStringSetWithValues

func NewStringSetWithValues(vals []string) *StringSet

func (*StringSet) Add

func (s *StringSet) Add(val string) *StringSet

func (*StringSet) AddAll

func (s *StringSet) AddAll(vals []string) *StringSet

func (*StringSet) Clear

func (s *StringSet) Clear()

func (*StringSet) Contains

func (s *StringSet) Contains(val string) bool

func (*StringSet) Len

func (s *StringSet) Len() int

func (*StringSet) Range

func (s *StringSet) Range(fn func(val string))

func (*StringSet) Remove

func (s *StringSet) Remove(val string)

func (*StringSet) ToArray

func (s *StringSet) ToArray() []string

Jump to

Keyboard shortcuts

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