dict

package
v0.0.0-...-24ca9bf Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dict

type Dict[K comparable, V any] interface {
	Get(key K) (value V, ok bool)
	Set(key K, value V) error
}

Dict is an implementation of a Dictionary. A dictionary (also called maps or associative arrays) are a data structure where values are indexed with comparable keys. It is one of the most abstract of the basic data structures.

* Access O(1) *on average (amortized) * Search O(1) *on average (amortized) * Insert O(1) *on average (amortized) * Delete O(1) *on average (amortized)

Jump to

Keyboard shortcuts

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