Has returns true if and only if item is contained in the set.
(item string)
| 67 | |
| 68 | // Has returns true if and only if item is contained in the set. |
| 69 | func (s StringSet) Has(item string) bool { |
| 70 | _, contained := s[item] |
| 71 | return contained |
| 72 | } |
| 73 | |
| 74 | // Len returns the size of the set. |
| 75 | func (s StringSet) Len() int { |
no outgoing calls