Copy returns a new Set with a copy of s.
()
| 180 | |
| 181 | // Copy returns a new Set with a copy of s. |
| 182 | func (s Set) Copy() Set { |
| 183 | u := make(Set, len(s)) |
| 184 | for item := range s { |
| 185 | u[item] = _keyExists |
| 186 | } |
| 187 | return u |
| 188 | } |
| 189 | |
| 190 | // String returns a string representation of s |
| 191 | func (s Set) String() string { |
no outgoing calls