ordered_map

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New[K, V any](comp comparer.Comparer[K]) *orderedMap[K, V]

Types

type KeyNotFoundError

type KeyNotFoundError[K any] = trees.NotFoundError[K]

type OrderedMap

type OrderedMap[K any, V any] interface {
	Set(key K, value V) error
	Get(key K) (V, error)
	Keys() []K
	Remove(key K) error
	Clear()
	Size() int
}

Jump to

Keyboard shortcuts

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