Lines Matching defs:IntSet
23 type IntSet struct { struct
24 set map[int]present
36 func (s *IntSet) Copy() *IntSet {
48 func (s *IntSet) Insert(elements ...int) {
56 func (s *IntSet) Delete(elements ...int) {
64 func (s *IntSet) Intersect(other *IntSet) *IntSet {
88 func (s *IntSet) Disjoint(other *IntSet) bool {
111 func (s *IntSet) Difference(other *IntSet) *IntSet {
131 func (s *IntSet) Unique(other *IntSet) *IntSet {
150 func (s *IntSet) Equal(other *IntSet) bool {
175 func (s *IntSet) Union(other *IntSet) *IntSet {
186 func (s *IntSet) Contains(element int) bool {
192 func (s *IntSet) Len() int {
197 func (s *IntSet) Empty() bool {
203 func (s *IntSet) Elements() []int {
212 func (s *IntSet) Sorted() []int {
220 func (s *IntSet) String() string {