collections

package
v0.0.0-...-3525705 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxBitsetIdx = 100_000
)

Variables

This section is empty.

Functions

func MakeKey

func MakeKey(ss ...fmt.Stringer) string

Types

type Bitset

type Bitset interface {
	Equals(Bitset) bool
	Len() int
	Cap() int
	Get(int) bool
	CountOn() int
	CountOff() int
	EachOn(interfaces.FuncIter[int]) error
	EachOff(interfaces.FuncIter[int]) error

	Add(int)
	Del(int)
	DelIfPresent(int)
	// contains filtered or unexported methods
}

func MakeBitset

func MakeBitset(n int) Bitset

func MakeBitsetOn

func MakeBitsetOn(n int) Bitset

type KeyFunc

type KeyFunc[T any] func(T) string

Source Files

  • bitset.go
  • key_func.go
  • tridex_set.go

Jump to

Keyboard shortcuts

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