Directories ¶
Path | Synopsis |
---|---|
Implement these additional methods:
|
Implement these additional methods: |
Define a variadic `(*IntSet).AddAll(...int)` method that allows a list of values to be added, such as `s.AddAll(1, 2, 3)`.
|
Define a variadic `(*IntSet).AddAll(...int)` method that allows a list of values to be added, such as `s.AddAll(1, 2, 3)`. |
`(*IntSet).UnionWith` computes the union of two sets using `|`, the word-parallel bitwise OR operator.
|
`(*IntSet).UnionWith` computes the union of two sets using `|`, the word-parallel bitwise OR operator. |
Add a method `Elems` that returns a slice containing the elements of the set, suitable for iterating over with a range loop.
|
Add a method `Elems` that returns a slice containing the elements of the set, suitable for iterating over with a range loop. |
The type of each word used by `IntSet` is `uint64`, but 64-bit arithmetic may be inefficient on a 32-bit platform.
|
The type of each word used by `IntSet` is `uint64`, but 64-bit arithmetic may be inefficient on a 32-bit platform. |
Click to show internal directories.
Click to hide internal directories.