Creates and returns a reference to an empty set with a capacity.
(capacity int)
| 19 | |
| 20 | // Creates and returns a reference to an empty set with a capacity. |
| 21 | func NewStringSetWithCapacity(capacity int) StringSet { |
| 22 | return make(StringSet, capacity) |
| 23 | } |
| 24 | |
| 25 | // Creates and returns a reference to a set from an existing slice |
| 26 | func NewStringSetFromSlice(s []string) StringSet { |
no outgoing calls
no test coverage detected