Determines if every item in the other set is in this set.
(other StringSet)
| 55 | |
| 56 | // Determines if every item in the other set is in this set. |
| 57 | func (set StringSet) IsSubset(other StringSet) bool { |
| 58 | for elem := range set { |
| 59 | if !other.Contains(elem) { |
| 60 | return false |
| 61 | } |
| 62 | } |
| 63 | return true |
| 64 | } |
| 65 | |
| 66 | // Determines if every item of this set is in the other set. |
| 67 | func (set StringSet) IsSuperset(other StringSet) bool { |