hashmap

package
v0.0.0-...-81dff9f Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashMap

type HashMap[TKey comparable, TValue any] interface {
	collection.Collection[dict.Pair[TKey, TValue]]
	Get(TKey) (*TValue, error)
	Set(TKey, TValue) error
	Remove(TKey) (*TValue, error)
}

func From

func From[TKey comparable, TValue any](
	c collection.Collection[dict.Pair[TKey, TValue]],
) HashMap[TKey, TValue]

func New

func New[TKey comparable, TValue any](capacity int) HashMap[TKey, TValue]

Jump to

Keyboard shortcuts

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