Add - adds element to the set.
(s T)
| 70 | |
| 71 | // Add - adds element to the set. |
| 72 | func (set Set[T]) Add(s T) { |
| 73 | set[s] = struct{}{} |
| 74 | } |
| 75 | |
| 76 | // Remove - removes element from the set. It does nothing if element does not exist in the set. |
| 77 | func (set Set[T]) Remove(s T) { |
no outgoing calls