fastmap

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 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 RobinHoodMap

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

func NewRobinHoodMap

func NewRobinHoodMap[K comparable, V any]() *RobinHoodMap[K, V]

func (*RobinHoodMap[K, V]) Clear

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

func (*RobinHoodMap[K, V]) Get

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

func (*RobinHoodMap[K, V]) Put

func (m *RobinHoodMap[K, V]) Put(key K, value V)

func (*RobinHoodMap[K, V]) Remove

func (m *RobinHoodMap[K, V]) Remove(key K) bool

func (*RobinHoodMap[K, V]) Size

func (m *RobinHoodMap[K, V]) Size() int

Jump to

Keyboard shortcuts

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