Skip to content

Simple bi-directional map implementation in Go

Notifications You must be signed in to change notification settings

diogobeda/bimap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BiMap

A simple bi-directional map implementation in Go

API docs: https://godoc.org/github.com/diogobeda/bimap

Usage

import "githib.com/diogobeda/bimap"

// empty map initialization
bm := NewBiMap()

bm.Set("a", 1)

fmt.Println(bm.Get("a"))
// 1

fmt.Println(bm.GetKey(1))
// "a"


// Initialize with values
bm := NewBiMap(Tuple{"a", 1}, Tuple{"b", 2})

About

Simple bi-directional map implementation in Go

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages