set

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 License: Apache-2.0 Imports: 1 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[T comparable] map[T]struct{}

func New added in v0.2.0

func New[T comparable](args ...T) Set[T]

func (Set[T]) Add

func (s Set[T]) Add(t T)

func (Set[T]) Delete

func (s Set[T]) Delete(t T)

func (Set[T]) Elements

func (s Set[T]) Elements() []T

func (Set[T]) Has

func (s Set[T]) Has(t T) bool

Jump to

Keyboard shortcuts

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