AddRange adds a list of elements to a set
(ss []T)
| 31 | |
| 32 | // AddRange adds a list of elements to a set |
| 33 | func (set *Set[T]) AddRange(ss []T) { |
| 34 | for _, s := range ss { |
| 35 | set.Set[s] = true |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | // Contains tests if an element is in a set |
| 40 | func (set *Set[T]) Contains(s T) bool { |
no outgoing calls