set

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 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[V comparable] map[V]struct{}

func New

func New[V comparable](values ...V) Set[V]

func (Set[V]) Add

func (s Set[V]) Add(values ...V)

func (Set[V]) Array added in v0.0.2

func (s Set[V]) Array() []V

func (Set[V]) Has

func (s Set[V]) Has(v V) bool

func (Set[V]) Remove

func (s Set[V]) Remove(v V)

func (Set[V]) Union

func (s Set[V]) Union(other Set[V]) Set[V]

Jump to

Keyboard shortcuts

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