set

package
v1.12.3 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: MIT 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[Key comparable] map[Key]struct{}

func New

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

func (Set[Key]) Add

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

func (Set[Key]) ToSlice added in v1.8.0

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

Jump to

Keyboard shortcuts

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