set

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Set

type Set[K comparable] map[K]struct{}

func New

func New[K comparable]() Set[K]

func (Set[K]) Add

func (s Set[K]) Add(key K)

func (Set[K]) Contains added in v0.0.21

func (s Set[K]) Contains(key K) bool

func (Set[K]) Remove added in v0.0.21

func (s Set[K]) Remove(key K)

func (Set[K]) ToSlice

func (s Set[K]) ToSlice() []K

Jump to

Keyboard shortcuts

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