Documentation
¶
Index ¶
- type BitSet
- func (set *BitSet) And(compare *BitSet) (res *BitSet)
- func (set *BitSet) Clone() *BitSet
- func (set *BitSet) Count() uint64
- func (set *BitSet) Diff(compare *BitSet) (res *BitSet)
- func (set *BitSet) Get(pos uint64) int
- func (set *BitSet) InPlaceDiff(compare *BitSet)
- func (set *BitSet) LeftShift(n int)
- func (set *BitSet) Not() (res *BitSet)
- func (set *BitSet) Or(compare *BitSet) (res *BitSet)
- func (set *BitSet) RightShift(n int)
- func (set *BitSet) Set(pos uint64, value int) int
- func (set *BitSet) String() string
- func (set *BitSet) StringAsc() string
- func (set *BitSet) StringBit() string
- func (set *BitSet) StringDesc() string
- func (set *BitSet) Xor(compare *BitSet) (res *BitSet)
- type Error
- type HashSet
- func (set *HashSet) Add(items ...interface{})
- func (set *HashSet) Clear()
- func (set *HashSet) Contains(items ...interface{}) bool
- func (set *HashSet) Empty() bool
- func (set *HashSet) Remove(items ...interface{})
- func (set *HashSet) Size() int
- func (set *HashSet) String() string
- func (set *HashSet) Values() []interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitSet ¶
type BitSet struct {
// contains filtered or unexported fields
}
func (*BitSet) Count ¶
https://en.wikipedia.org/wiki/Hamming_weight use variable-precision SWAR
func (*BitSet) InPlaceDiff ¶
self diff operator (&^) return set diff compare(set~compare)
func (*BitSet) StringDesc ¶
type Error ¶
type Error string
Error is used to distinguish errors (panics) generated in this package.
Click to show internal directories.
Click to hide internal directories.