sets

package
v0.0.1-beta.2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2025 License: MIT Imports: 2 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 Clone

func Clone[T comparable](set Set[T]) Set[T]

func New

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

func NewFromData

func NewFromData[T comparable](data ...T) Set[T]

func NewFromSlice

func NewFromSlice[T comparable](data []T) Set[T]

func (Set[T]) Add

func (set Set[T]) Add(value T)

func (Set[T]) AddAll

func (set Set[T]) AddAll(values ...T)

func (Set[T]) Clone

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

func (Set[T]) Contains

func (set Set[T]) Contains(value T) bool

func (Set[T]) Iter

func (set Set[T]) Iter() iter.Seq[T]

func (Set[T]) Remove

func (set Set[T]) Remove(value T)

func (Set[T]) RemoveAll

func (set Set[T]) RemoveAll(values ...T)

func (Set[T]) Size

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

func (Set[T]) ToSlice

func (set Set[T]) ToSlice() []T

Jump to

Keyboard shortcuts

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