set

package
v0.0.0-...-22e6c3c Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: MIT 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 NewSet

func NewSet[T comparable]() Set[T]

func (Set[T]) Add

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

func (Set[T]) Contains

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

func (Set[T]) Delete

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

func (Set[T]) Intersect

func (s Set[T]) Intersect(o Set[T]) Set[T]

func (Set[T]) IsEmpty

func (s Set[T]) IsEmpty() bool

func (Set[T]) Pop

func (s Set[T]) Pop() (T, bool)

func (Set[T]) Slice

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

Jump to

Keyboard shortcuts

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