set

package
v15.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: MIT Imports: 3 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[T cmp.Ordered] map[T]struct{}

a simple generic Set implementation

func New

func New[T cmp.Ordered](values ...T) Set[T]

func (Set[T]) Add

func (self Set[T]) Add(values ...T)

func (Set[T]) AddSet

func (self Set[T]) AddSet(other Set[T])

func (Set[T]) Contains

func (self Set[T]) Contains(value T) bool

func (Set[T]) Values

func (self Set[T]) Values() []T

Jump to

Keyboard shortcuts

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