set

package
v0.0.0-...-487cccc Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 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 New

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

func (Set[T]) Add

func (s Set[T]) Add(elems ...T)

func (Set[T]) ContainsAll

func (s Set[T]) ContainsAll(es ...T) bool

func (Set[T]) ContainsAny

func (s Set[T]) ContainsAny(es ...T) bool

func (Set[T]) Equal

func (s Set[T]) Equal(s0 Set[T]) bool

func (Set[T]) Filter

func (s Set[T]) Filter(f func(T) bool) Set[T]

func (Set[T]) Remove

func (s Set[T]) Remove(elems ...T)

func (Set[T]) ToSlice

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

Jump to

Keyboard shortcuts

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