sets

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sets

type Sets[T comparable] map[T]bool

func New

func New[T comparable]() Sets[T]

func (Sets[T]) Add

func (s Sets[T]) Add(values ...T)

func (Sets[T]) Delete

func (s Sets[T]) Delete(values ...T)

func (Sets[T]) Has

func (s Sets[T]) Has(value T) bool

func (Sets[T]) Iterate

func (s Sets[T]) Iterate(it func(T))

func (Sets[T]) Len

func (s Sets[T]) Len() int

Jump to

Keyboard shortcuts

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