orderedmap

package
v0.0.0-...-f1100e8 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

type Map[K comparable, V any] interface {
	// Returns the number of elements in the map.
	Len() int

	// HasKey returns true if the map contains the given key.
	HasKey(key K) bool

	// Get returns the value associated with the given key.
	Get(key K) V

	// Put associates the given value with the given key.
	Put(key K, value V)

	// Del removes the given key and its associated value, it returns true if the key was found and deleted.
	Del(key K) bool

	// Keys returns the keys of the map.
	Keys() []K

	// Values returns the values of the map.
	Values() []V
}

func New

func New[K comparable, V any]() Map[K, V]

Jump to

Keyboard shortcuts

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