set

package
v0.0.0-...-a510a1c Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: Apache-2.0 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[E comparable] map[E]struct{}

func Intersection

func Intersection[E comparable](s1, s2 Set[E]) Set[E]

func Make

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

func Map

func Map[E1, E2 comparable](s Set[E1], f func(E1) E2) Set[E2]

func Union

func Union[E comparable](s1, s2 Set[E]) Set[E]

func (Set[E]) Add

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

func (Set[E]) Contains

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

func (Set[E]) Delete

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

func (Set[E]) String

func (s Set[E]) String() string

Jump to

Keyboard shortcuts

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