Returns a set with any instance of 'str' removed
(str string)
| 155 | |
| 156 | // Returns a set with any instance of 'str' removed |
| 157 | func (set Set) Removing(str string) Set { |
| 158 | if _, exists := set[str]; exists { |
| 159 | set = set.copy() |
| 160 | delete(set, str) |
| 161 | } |
| 162 | return set |
| 163 | } |
| 164 | |
| 165 | // JSON encoding/decoding: |
| 166 |
no test coverage detected