Determines if the given items are all in the set
(i ...string)
| 46 | |
| 47 | // Determines if the given items are all in the set |
| 48 | func (set StringSet) ContainsAll(i ...string) bool { |
| 49 | allSet := NewStringSetFromSlice(i) |
| 50 | if allSet.IsSubset(set) { |
| 51 | return true |
| 52 | } |
| 53 | return false |
| 54 | } |
| 55 | |
| 56 | // Determines if every item in the other set is in this set. |
| 57 | func (set StringSet) IsSubset(other StringSet) bool { |