smallSets

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinSet = 0
	MaxSet = 63
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Set

type Set uint64

func Full

func Full() Set

func MakeSet

func MakeSet(values ...int) Set

func NewSet

func NewSet() Set

func (Set) Diff

func (set1 Set) Diff(set2 Set) Set

func (Set) Equal

func (s1 Set) Equal(s2 Set) bool

func (*Set) Excl

func (set *Set) Excl(value int)

func (Set) FirstE

func (s Set) FirstE() (int, bool)

func (Set) In

func (set Set) In(value int) bool

func (*Set) Incl

func (set *Set) Incl(value int)

func (Set) Inter

func (set1 Set) Inter(set2 Set) Set

func (Set) IsEmpty

func (s Set) IsEmpty() bool

func (Set) NbElems

func (s Set) NbElems() int

func (Set) NextE

func (s Set) NextE(e int) (int, bool)

func (Set) Subset

func (s1 Set) Subset(s2 Set) bool

func (Set) Union

func (set1 Set) Union(set2 Set) Set

func (Set) XOR

func (set1 Set) XOR(set2 Set) Set

Jump to

Keyboard shortcuts

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