set

package
v0.0.0-...-a89fe16 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 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[T comparable] map[T]struct{}

func New

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

func (Set[T]) Append

func (s Set[T]) Append(elems ...T)

func (Set[T]) Clone

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

func (Set[T]) Contains

func (s Set[T]) Contains(elem T) bool

func (Set[T]) Items

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

func (Set[T]) Iter

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

func (Set[T]) Size

func (s Set[T]) Size() int

Jump to

Keyboard shortcuts

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