orderedmap

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSlice

func NewSlice[K comparable, V any](sizeHint int, stable bool) container.OrderedMap[K, V]

Types

type Slice

type Slice[K comparable, V any] struct {
	// contains filtered or unexported fields
}

func (*Slice[K, V]) Delete

func (s *Slice[K, V]) Delete(k K)

func (*Slice[K, V]) Len

func (s *Slice[K, V]) Len() int

func (*Slice[K, V]) Load

func (s *Slice[K, V]) Load(key K) (V, bool)

func (*Slice[K, V]) Range

func (s *Slice[K, V]) Range(f func(key K, value V) bool)

func (*Slice[K, V]) Store

func (s *Slice[K, V]) Store(k K, v V)

Jump to

Keyboard shortcuts

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