Equal checks whether the two sets equal.
(other *IntSet)
| 144 | |
| 145 | // Equal checks whether the two sets equal. |
| 146 | func (set *IntSet) Equal(other *IntSet) bool { |
| 147 | set.lazyInit() |
| 148 | other.lazyInit() |
| 149 | return set.TSet.Equal(other.TSet) |
| 150 | } |
| 151 | |
| 152 | // IsSubsetOf checks whether the current set is a sub-set of `other`. |
| 153 | func (set *IntSet) IsSubsetOf(other *IntSet) bool { |