hashmap

package
v0.0.0-...-0008579 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 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.Value
	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.Value) (V, bool)

func (*HashMap[V]) Keys

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

func (*HashMap[V]) Set

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

Jump to

Keyboard shortcuts

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