hashmap

package
v0.0.0-...-a4a72b7 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 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 HashMap

type HashMap struct {
	// contains filtered or unexported fields
}

HashMap is golang implementation of hashmap

func Make

func Make(size, capacity uint64) HashMap

Make creates a new HashMap instance with input size and capacity

func New

func New() *HashMap

New return new HashMap instance

func (*HashMap) Contains

func (hm *HashMap) Contains(key any) bool

Contains checks if given key is stored in hashmap

func (*HashMap) Get

func (hm *HashMap) Get(key any) any

Get returns value associated with given key

func (*HashMap) Put

func (hm *HashMap) Put(key any, value any) any

Put puts new key value in hashmap

Jump to

Keyboard shortcuts

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