set

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: GPL-3.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] interface {
	Add(val T) bool
	Remove(val T) (T, bool)
	Clear()
	Size() int
	Slice() []T
	Contains(val T) bool
	Clone() Set[T]
}

func NewOrderedSet

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

func NewSet

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

Jump to

Keyboard shortcuts

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