bitsets

package
v0.0.0-...-6d69d33 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BitCopy

func BitCopy(from, to BitSet)

BitCopy copies the set bits from one BitSet to another. It is done bit-by-bit so that sparse and dense sets can be converted.

Types

type BitSet

type BitSet interface {
	Set(n uint) BitSet
	Test(n uint) bool
	IsSuperSet(other BitSet) bool
	NextSet(n uint) (uint, bool)
}

func NewDense

func NewDense(length uint) BitSet

func NewSparse

func NewSparse(length uint) BitSet

Jump to

Keyboard shortcuts

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