Cardinality returns how many items are currently in the set.
()
| 131 | |
| 132 | // Cardinality returns how many items are currently in the set. |
| 133 | func (set StringSet) Cardinality() int { |
| 134 | return len(set) |
| 135 | } |
| 136 | |
| 137 | // Iter() returns a channel of type string that you can range over. |
| 138 | func (set StringSet) Iter() <-chan string { |
no outgoing calls