intset

package
v0.0.0-...-cdffa6e Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Bit = 32 << (^uint(0) >> 63)

Variables

This section is empty.

Functions

This section is empty.

Types

type ISet2

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

func (*ISet2) Add

func (s *ISet2) Add(x int)

func (*ISet2) Has

func (s *ISet2) Has(x int) bool

func (*ISet2) String

func (s *ISet2) String() string

func (*ISet2) UnionWith

func (s *ISet2) UnionWith(t *ISet2)

type IntSet

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

func (*IntSet) Add

func (s *IntSet) Add(x int)

func (*IntSet) AddAll

func (set *IntSet) AddAll(nums ...int)

func (*IntSet) Clear

func (s *IntSet) Clear()

func (*IntSet) Copy

func (s *IntSet) Copy() *IntSet

func (*IntSet) DifferenceWith

func (s *IntSet) DifferenceWith(t *IntSet)

func (*IntSet) Elems

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

func (*IntSet) Has

func (s *IntSet) Has(x int) bool

func (*IntSet) IntersectWith

func (s *IntSet) IntersectWith(t *IntSet)

func (*IntSet) Len

func (s *IntSet) Len() int

func (*IntSet) Remove

func (s *IntSet) Remove(x int)

func (*IntSet) String

func (s *IntSet) String() string

BenchmarkIntSet_String-8 3000000 418 ns/op

func (*IntSet) StringV2

func (s *IntSet) StringV2() string

BenchmarkIntSet_StringV2-8 3000000 549 ns/op

func (*IntSet) SymmetricWith

func (s *IntSet) SymmetricWith(t *IntSet)

func (*IntSet) UnionWith

func (s *IntSet) UnionWith(t *IntSet)

Jump to

Keyboard shortcuts

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