Equal checks whether the two sets equal.
(other *StrSet)
| 157 | |
| 158 | // Equal checks whether the two sets equal. |
| 159 | func (set *StrSet) Equal(other *StrSet) bool { |
| 160 | set.lazyInit() |
| 161 | other.lazyInit() |
| 162 | return set.TSet.Equal(other.TSet) |
| 163 | } |
| 164 | |
| 165 | // IsSubsetOf checks whether the current set is a sub-set of `other`. |
| 166 | func (set *StrSet) IsSubsetOf(other *StrSet) bool { |