xset

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TIntSet

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

func NewIntSet

func NewIntSet(unsafe ...bool) *TIntSet

func NewIntSetFrom

func NewIntSetFrom(items []int, unsafe ...bool) *TIntSet

func (*TIntSet) Add

func (set *TIntSet) Add(item ...int) *TIntSet

func (*TIntSet) Clear

func (set *TIntSet) Clear() *TIntSet

func (*TIntSet) Complement

func (set *TIntSet) Complement(full *TIntSet) (newSet *TIntSet)

func (*TIntSet) Contains

func (set *TIntSet) Contains(item int) bool

func (*TIntSet) Diff

func (set *TIntSet) Diff(others ...*TIntSet) (newSet *TIntSet)

func (*TIntSet) Equal

func (set *TIntSet) Equal(other *TIntSet) bool

func (*TIntSet) Intersect

func (set *TIntSet) Intersect(others ...*TIntSet) (newSet *TIntSet)

func (*TIntSet) IsSubsetOf

func (set *TIntSet) IsSubsetOf(other *TIntSet) bool

func (*TIntSet) Iterator

func (set *TIntSet) Iterator(f func(v int) bool) *TIntSet

func (*TIntSet) Join

func (set *TIntSet) Join(glue string) string

func (*TIntSet) LockFunc

func (set *TIntSet) LockFunc(f func(m map[int]struct{}))

func (*TIntSet) Merge

func (set *TIntSet) Merge(others ...*TIntSet) *TIntSet

func (*TIntSet) Pop

func (set *TIntSet) Pop(size int) int

func (*TIntSet) Pops

func (set *TIntSet) Pops(size int) []int

func (*TIntSet) RLockFunc

func (set *TIntSet) RLockFunc(f func(m map[int]struct{}))

func (*TIntSet) Remove

func (set *TIntSet) Remove(item int) *TIntSet

func (*TIntSet) Size

func (set *TIntSet) Size() int

func (*TIntSet) Slice

func (set *TIntSet) Slice() []int

func (*TIntSet) String

func (set *TIntSet) String() string

func (*TIntSet) Sum

func (set *TIntSet) Sum() (sum int)

func (*TIntSet) Union

func (set *TIntSet) Union(others ...*TIntSet) (newSet *TIntSet)

type TSet

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

func New

func New(unsafe ...bool) *TSet

func NewFrom

func NewFrom(items interface{}, unsafe ...bool) *TSet

func NewSet

func NewSet(unsafe ...bool) *TSet

func (*TSet) Add

func (set *TSet) Add(item ...interface{}) *TSet

func (*TSet) Clear

func (set *TSet) Clear() *TSet

func (*TSet) Complement

func (set *TSet) Complement(full *TSet) (newTSet *TSet)

func (*TSet) Contains

func (set *TSet) Contains(item interface{}) bool

func (*TSet) Diff

func (set *TSet) Diff(others ...*TSet) (newTSet *TSet)

func (*TSet) Equal

func (set *TSet) Equal(other *TSet) bool

func (*TSet) Intersect

func (set *TSet) Intersect(others ...*TSet) (newTSet *TSet)

func (*TSet) IsSubsetOf

func (set *TSet) IsSubsetOf(other *TSet) bool

func (*TSet) Iterator

func (set *TSet) Iterator(f func(v interface{}) bool) *TSet

func (*TSet) Join

func (set *TSet) Join(glue string) string

func (*TSet) LockFunc

func (set *TSet) LockFunc(f func(m map[interface{}]struct{}))

func (*TSet) Merge

func (set *TSet) Merge(others ...*TSet) *TSet

func (*TSet) Pop

func (set *TSet) Pop(size int) interface{}

func (*TSet) Pops

func (set *TSet) Pops(size int) []interface{}

func (*TSet) RLockFunc

func (set *TSet) RLockFunc(f func(m map[interface{}]struct{}))

func (*TSet) Remove

func (set *TSet) Remove(item interface{}) *TSet

func (*TSet) Size

func (set *TSet) Size() int

func (*TSet) Slice

func (set *TSet) Slice() []interface{}

func (*TSet) String

func (set *TSet) String() string

func (*TSet) Sum

func (set *TSet) Sum() (sum int)

func (*TSet) Union

func (set *TSet) Union(others ...*TSet) (newTSet *TSet)

type TStrSet

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

func NewStrSet

func NewStrSet(unsafe ...bool) *TStrSet

func NewStrSetFrom

func NewStrSetFrom(items []string, unsafe ...bool) *TStrSet

func (*TStrSet) Add

func (set *TStrSet) Add(item ...string) *TStrSet

func (*TStrSet) Clear

func (set *TStrSet) Clear() *TStrSet

func (*TStrSet) Complement

func (set *TStrSet) Complement(full *TStrSet) (newSet *TStrSet)

func (*TStrSet) Contains

func (set *TStrSet) Contains(item string) bool

func (*TStrSet) Diff

func (set *TStrSet) Diff(others ...*TStrSet) (newSet *TStrSet)

func (*TStrSet) Equal

func (set *TStrSet) Equal(other *TStrSet) bool

func (*TStrSet) Intersect

func (set *TStrSet) Intersect(others ...*TStrSet) (newSet *TStrSet)

func (*TStrSet) IsSubsetOf

func (set *TStrSet) IsSubsetOf(other *TStrSet) bool

func (*TStrSet) Iterator

func (set *TStrSet) Iterator(f func(v string) bool) *TStrSet

func (*TStrSet) Join

func (set *TStrSet) Join(glue string) string

func (*TStrSet) LockFunc

func (set *TStrSet) LockFunc(f func(m map[string]struct{}))

func (*TStrSet) Merge

func (set *TStrSet) Merge(others ...*TStrSet) *TStrSet

func (*TStrSet) Pop

func (set *TStrSet) Pop(size int) string

func (*TStrSet) Pops

func (set *TStrSet) Pops(size int) []string

func (*TStrSet) RLockFunc

func (set *TStrSet) RLockFunc(f func(m map[string]struct{}))

func (*TStrSet) Remove

func (set *TStrSet) Remove(item string) *TStrSet

func (*TStrSet) Size

func (set *TStrSet) Size() int

func (*TStrSet) Slice

func (set *TStrSet) Slice() []string

func (*TStrSet) String

func (set *TStrSet) String() string

func (*TStrSet) Sum

func (set *TStrSet) Sum() (sum int)

func (*TStrSet) Union

func (set *TStrSet) Union(others ...*TStrSet) (newSet *TStrSet)

Jump to

Keyboard shortcuts

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