Remove - removes element from the set. It does nothing if element does not exist in the set.
(s T)
| 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) { |
| 78 | delete(set, s) |
| 79 | } |
| 80 | |
| 81 | // Contains - checks if element is in the set. |
| 82 | func (set Set[T]) Contains(s T) bool { |
no outgoing calls