Add includes the specified items (one or more) to the Set. The underlying Set s is modified. If passed nothing it silently returns.
(items ...string)
| 48 | // Add includes the specified items (one or more) to the Set. The underlying |
| 49 | // Set s is modified. If passed nothing it silently returns. |
| 50 | func (s Set) Add(items ...string) { |
| 51 | for _, item := range items { |
| 52 | s[item] = _keyExists |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | // Remove deletes the specified items from the Set. The underlying Set s is |
| 57 | // modified. If passed nothing it silently returns. |
no outgoing calls