ExampleBitSet_String renders the set in mathematical set notation.
()
| 201 | |
| 202 | // ExampleBitSet_String renders the set in mathematical set notation. |
| 203 | func ExampleBitSet_String() { |
| 204 | b := New(50).Set(1).Set(17).Set(49) |
| 205 | fmt.Println(b.String()) |
| 206 | // Output: {1,17,49} |
| 207 | } |
| 208 | |
| 209 | // ExampleBitSet_Rank counts how many bits are set at or below the given index. |
| 210 | func ExampleBitSet_Rank() { |