set

package
v0.0.0-...-4381ce5 Latest Latest
Warning

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

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

func NewSet

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

func (Set[T]) Add

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

func (Set[T]) AsSlice

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

func (Set[T]) Cardinality

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

func (Set[T]) Delete

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

func (Set[T]) In

func (s Set[T]) In(key T) bool

Jump to

Keyboard shortcuts

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