set

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: GPL-3.0 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]bool

func New

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

func (Set[T]) Add

func (self Set[T]) Add(items ...T)

func (Set[T]) Delete

func (self Set[T]) Delete(items ...T)

func (Set[T]) Empty

func (self Set[T]) Empty() bool

func (Set[T]) Has

func (self Set[T]) Has(items ...T) bool

func (Set[T]) Size

func (self Set[T]) Size() int

Jump to

Keyboard shortcuts

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