Skip to content

HashMap-like collection that automatically determines the key.

License

Notifications You must be signed in to change notification settings

pourplusquoi/slabmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slabmap

Ported from Rust library slabmap

Examples

import "github.com/pourplusquoi/slabmap"

slab := slabmap.NewSlabMap()
keyA := slab.Insert("aaa")
keyB := slab.Insert("bbb")

valueA, existsA := slab.Get(keyA)
fmt.Println(valueA, existsA)
valueB, existsB := slab.Get(keyB)
fmt.Println(valueB, existsB)

valueA, removedA := slab.Remove(keyA)
fmt.Println(valueA, removedA)
valueA, removedA = slab.Remove(keyA)
fmt.Println(valueA, removedA)

About

HashMap-like collection that automatically determines the key.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages