dict

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package dict provides implementations of immutable dictionaries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry[K, V any] struct {
	Key   K
	Value V
}

Entry in a dictionary

func E

func E[K, V any](k K, v V) Entry[K, V]

E is a shorthand for creating an Entry

func (Entry[K, V]) String

func (e Entry[K, V]) String() string

Directories

Path Synopsis
Package arraydict implements an immutable dictionary based on an array of dict.Entry.
Package arraydict implements an immutable dictionary based on an array of dict.Entry.
Package hashdict implements a dictionary based on a hash-trie data structure.
Package hashdict implements a dictionary based on a hash-trie data structure.

Jump to

Keyboard shortcuts

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