Documentation ¶
Index ¶
- type IntSet
- func (s *IntSet) Add(x int)
- func (s *IntSet) Clear()
- func (s *IntSet) Copy() *IntSet
- func (s *IntSet) DifferenceWith(t *IntSet)
- func (s *IntSet) Elems() []uint
- func (s *IntSet) Has(x int) bool
- func (s *IntSet) IntersectWith(t *IntSet)
- func (s *IntSet) Len() int
- func (s *IntSet) Remove(x int)
- func (s *IntSet) String() string
- func (s *IntSet) SymmetricDifference(t *IntSet) *IntSet
- func (s *IntSet) UnionWith(t *IntSet)
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
}
An IntSet is a set of small non-negative integers. Its zero value represents the empty set.
func (*IntSet) DifferenceWith ¶
DifferenceWith sets s to the Difference of s and t.
func (*IntSet) IntersectWith ¶
IntersectWith sets s to the Intersect of s and t.
func (*IntSet) SymmetricDifference ¶
SymmetricDifference sets s to the Difference of s and t.
Click to show internal directories.
Click to hide internal directories.