concurrent_set

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT 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[K comparable, V any] struct {
	// contains filtered or unexported fields
}

func From

func From[K comparable, V any](values map[K]V) Set[K, V]

func New

func New[K comparable, V any]() Set[K, V]

func (*Set[K, V]) Delete

func (s *Set[K, V]) Delete(key K)

func (*Set[K, V]) Edit

func (s *Set[K, V]) Edit(key K, fn func(value *V) *V)

func (*Set[K, V]) Get

func (s *Set[K, V]) Get(key K) (V, bool)

func (*Set[K, V]) Insert

func (s *Set[K, V]) Insert(key K, value V)

func (*Set[K, V]) Iter

func (s *Set[K, V]) Iter() map[K]V

func (*Set[K, V]) Keys

func (s *Set[K, V]) Keys() []K

func (*Set[K, V]) Values

func (s *Set[K, V]) Values() []V

Jump to

Keyboard shortcuts

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