ch6/

directory
v0.0.0-...-94c99f4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2019 License: Apache-2.0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL