ordmapx

package
v0.0.0-...-7ee87ef Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrdMap

type OrdMap[K constraints.Ordered, V any] struct {
	// contains filtered or unexported fields
}

func New

func New[K constraints.Ordered, V any]() *OrdMap[K, V]

func (*OrdMap[K, V]) Clear

func (m *OrdMap[K, V]) Clear()

func (*OrdMap[K, V]) Del

func (m *OrdMap[K, V]) Del(key K)

func (*OrdMap[K, V]) Get

func (m *OrdMap[K, V]) Get(key K) (V, bool)

func (*OrdMap[K, V]) Keys

func (m *OrdMap[K, V]) Keys() []K

func (*OrdMap[K, V]) Len

func (m *OrdMap[K, V]) Len() int

func (*OrdMap[K, V]) Range

func (m *OrdMap[K, V]) Range(f func(key K, value V) (stop bool))

func (*OrdMap[K, V]) Set

func (m *OrdMap[K, V]) Set(key K, value V)

func (*OrdMap[K, V]) Values

func (m *OrdMap[K, V]) Values() []V

Jump to

Keyboard shortcuts

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