ExampleBitSet_Complement flips every bit within the set's length.
()
| 161 | |
| 162 | // ExampleBitSet_Complement flips every bit within the set's length. |
| 163 | func ExampleBitSet_Complement() { |
| 164 | b := New(8).Set(1).Set(3) |
| 165 | fmt.Println(b.Complement().String()) |
| 166 | // Output: {0,2,4,5,6,7} |
| 167 | } |
| 168 | |
| 169 | // ExampleBitSet_InPlaceUnion mutates the receiver instead of allocating a new |
| 170 | // set. The In-Place variants (and the *Cardinality helpers) avoid allocation in |
nothing calls this directly
no test coverage detected