Versions in this module Expand all Collapse all v1 v1.12.0 Jun 11, 2022 Changes in this version type NSet + func (n *NSet[T]) GetAllElements() []T v1.11.0 Jun 11, 2022 Changes in this version type NSet + func (n *NSet[T]) IsEq(otherSet *NSet[T]) bool v1.10.0 Jun 11, 2022 Changes in this version type NSet + func UnionSets(set1, set2 *NSet[T]) *NSet[T] v1.0.0 Jun 11, 2022 Changes in this version + const BucketCount + const BucketIndexingBits + const StorageTypeBits + type Bucket struct + Data []StorageType + StorageUnitCount uint32 + type BucketType uint8 + type IntsIf interface + type NSet struct + Buckets [BucketCount]Bucket + StorageUnitCount uint32 + func NewNSet() *NSet[T] + func (n *NSet[T]) Add(x T) + func (n *NSet[T]) AddMany(values ...T) + func (n *NSet[T]) Contains(x T) bool + func (n *NSet[T]) ContainsAll(values ...T) bool + func (n *NSet[T]) ContainsAny(values ...T) bool + func (n *NSet[T]) Copy() *NSet[T] + func (n *NSet[T]) GetBitMask(x T) StorageType + func (n *NSet[T]) GetBucketFromValue(x T) *Bucket + func (n *NSet[T]) GetBucketIndex(x T) BucketType + func (n *NSet[T]) GetIntersection(otherSet *NSet[T]) *NSet[T] + func (n *NSet[T]) GetStorageUnitIndex(x T) uint32 + func (n *NSet[T]) HasIntersection(otherSet *NSet[T]) bool + func (n *NSet[T]) Remove(x T) + func (n *NSet[T]) String() string + func (n *NSet[T]) Union(otherSet *NSet[T]) + type StorageType uint64