ints

package
v0.0.0-...-9e081f2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const IntSize = 1 << IntSizeShift
View Source
const IntSizeShift = 5 + (^uint(0) >> 32 & 1)

Variables

This section is empty.

Functions

This section is empty.

Types

type Set

type Set struct {
	// contains filtered or unexported fields
}

func FromSlice

func FromSlice(items []int) *Set

func Intersect

func Intersect(s, t *Set) *Set

func NewSet

func NewSet(items ...int) *Set

func Subtract

func Subtract(s, t *Set) *Set

func Union

func Union(s, t *Set) *Set

func (*Set) Add

func (s *Set) Add(items ...int) *Set

func (*Set) Contains

func (s *Set) Contains(item int) bool

func (*Set) Copy

func (s *Set) Copy() *Set

func (*Set) Intersect

func (s *Set) Intersect(t *Set) *Set

func (*Set) IsEmpty

func (s *Set) IsEmpty() bool

func (*Set) IsEqual

func (s *Set) IsEqual(t *Set) bool

func (*Set) Remove

func (s *Set) Remove(items ...int) *Set

func (*Set) Subtract

func (s *Set) Subtract(t *Set) *Set

func (*Set) ToSlice

func (s *Set) ToSlice() []int

func (*Set) Union

func (s *Set) Union(t *Set) *Set

Jump to

Keyboard shortcuts

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