Set

package
v0.0.0-...-44f780f Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Set

type Set map[int]bool

func NewSet

func NewSet() Set

func (Set) Add

func (s Set) Add(id int)

func (Set) Clear

func (s Set) Clear()

func (Set) Copy

func (s Set) Copy() Set

func (Set) Has

func (s Set) Has(v int) bool

func (Set) HasIntersection

func (s Set) HasIntersection(an Set) bool

func (Set) Merge

func (s Set) Merge(an Set)

func (Set) Remove

func (s Set) Remove(v int)

func (Set) Size

func (s Set) Size() int

func (Set) Top

func (s Set) Top() int

Jump to

Keyboard shortcuts

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