set

package
v0.0.0-...-5bd6445 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.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[E comparable] map[E]struct{}

func Collect

func Collect[E comparable](s iter.Seq[E]) Set[E]

func Intersect

func Intersect[E comparable](s ...Set[E]) Set[E]

func Make

func Make[E comparable](e ...E) Set[E]

func (Set[E]) Add

func (s Set[E]) Add(e E)

func (Set[E]) All

func (s Set[E]) All() iter.Seq[E]

func (Set[E]) Contains

func (s Set[E]) Contains(e E) bool

func (Set[E]) Delete

func (s Set[E]) Delete(e E)

func (Set[E]) Slice

func (s Set[E]) Slice() []E

func (Set[E]) SubsetOf

func (s Set[E]) SubsetOf(t Set[E]) bool

Jump to

Keyboard shortcuts

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