set

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 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[interface{}]struct{}

func New

func New(initSize int) Set

func (Set) Add

func (s Set) Add(k interface{})

func (Set) Contains

func (s Set) Contains(k interface{}) bool

func (Set) Diff

func (s Set) Diff(sub Set) Set

func (Set) Foreach

func (s Set) Foreach(f func(interface{}) bool)

func (Set) Remove

func (s Set) Remove(k interface{})

func (Set) Size

func (s Set) Size() int

Jump to

Keyboard shortcuts

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