Documentation ¶
Index ¶
- type IntSet
- func (s *IntSet) Add(x int)
- func (s *IntSet) AddAll(args ...int)
- func (s *IntSet) Clear()
- func (s *IntSet) Copy() *IntSet
- func (s *IntSet) DifferenceWith(t *IntSet)
- func (s *IntSet) Elems() []int
- 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)
- 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
}
IntSet An IntSet is a set of small non-negative integers. Its zero value represents the empty set.
func (*IntSet) DifferenceWith ¶
DifferenceWith A与B的差集,元素出现在A未出现在B
func (*IntSet) IntersectWith ¶
IntersectWith A与B的并集,A与B中均出现
func (*IntSet) SymmetricDifference ¶
SymmetricDifference A与B的并差集,元素出现在A没有出现在B,或出现在B没有出现在A
Click to show internal directories.
Click to hide internal directories.