set

package
v0.0.0-...-5655933 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 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 Empty

type Empty struct{}

type Rangeable

type Rangeable[K comparable, V any] map[K]V

type Set

type Set[R comparable] map[R]Empty

func New

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

func NewWithLoad

func NewWithLoad[R comparable, V any](elems map[R]V) Set[R]

func (Set[R]) Add

func (s Set[R]) Add(elem R)

func (Set[R]) Clear

func (s Set[R]) Clear() Set[R]

func (Set[R]) Diff

func (src Set[R]) Diff(dst Set[R]) (add, intersection, del Set[R])

func (Set[R]) Has

func (s Set[R]) Has(elem R) bool

Jump to

Keyboard shortcuts

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