hashmap

package
v0.0.0-...-b9e74e0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: Apache-2.0 Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry[V any] struct {
	Key   tla.TLAValue
	Value V
}

type HashMap

type HashMap[V any] struct {
	// contains filtered or unexported fields
}

func New

func New[V any]() *HashMap[V]

func (*HashMap[V]) Clear

func (h *HashMap[V]) Clear()

func (*HashMap[V]) Get

func (h *HashMap[V]) Get(k tla.TLAValue) (V, bool)

func (*HashMap[V]) Keys

func (h *HashMap[V]) Keys() []tla.TLAValue

func (*HashMap[V]) Set

func (h *HashMap[V]) Set(k tla.TLAValue, v V)

Jump to

Keyboard shortcuts

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