Delete removes all items from the set.
(items ...string)
| 59 | |
| 60 | // Delete removes all items from the set. |
| 61 | func (s StringSet) Delete(items ...string) StringSet { |
| 62 | for _, item := range items { |
| 63 | delete(s, item) |
| 64 | } |
| 65 | return s |
| 66 | } |
| 67 | |
| 68 | // Has returns true if and only if item is contained in the set. |
| 69 | func (s StringSet) Has(item string) bool { |
no outgoing calls