set

package
v0.0.0-...-94f88f4 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: BSD-3-Clause 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] struct {
	// contains filtered or unexported fields
}

func MakeSet

func MakeSet[T comparable]() *Set[T]

func (*Set[T]) Contains

func (set *Set[T]) Contains(v T) bool

func (*Set[T]) Insert

func (set *Set[T]) Insert(v T)

func (*Set[T]) Remove

func (set *Set[T]) Remove(v T)

func (*Set[T]) Size

func (set *Set[T]) Size() int

func (*Set[T]) Values

func (set *Set[T]) Values() []T

FIXME: turn this into an iterator

Jump to

Keyboard shortcuts

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