set

package
v0.0.0-...-1ec79b4 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 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[E comparable] map[E]struct{}

func From

func From[E comparable](values []E) Set[E]

func (Set[E]) Contains

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

func (Set[E]) IsSubset

func (set Set[E]) IsSubset(other Set[E]) bool

func (Set[E]) Put

func (set Set[E]) Put(values ...E)

func (Set[E]) Values

func (set Set[E]) Values() []E

Jump to

Keyboard shortcuts

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