gods: github.com/emirpasic/gods/maps Index | Files | Directories

package maps

import "github.com/emirpasic/gods/maps"

Package maps provides an abstract Map interface.

In computer science, an associative array, map, symbol table, or dictionary is an abstract data type composed of a collection of (key, value) pairs, such that each possible key appears just once in the collection.

Operations associated with this data type allow: - the addition of a pair to the collection - the removal of a pair from the collection - the modification of an existing pair - the lookup of a value associated with a particular key

Reference: https://en.wikipedia.org/wiki/Associative_array

Index

Package Files

maps.go

type BidiMap Uses

type BidiMap interface {
    GetKey(value interface{}) (key interface{}, found bool)

    Map
}

BidiMap interface that all bidirectional maps implement (extends the Map interface)

type Map Uses

type Map interface {
    Put(key interface{}, value interface{})
    Get(key interface{}) (value interface{}, found bool)
    Remove(key interface{})
    Keys() []interface{}

    containers.Container
}

Map interface that all maps implement

Directories

PathSynopsis
hashbidimapPackage hashbidimap implements a bidirectional map backed by two hashmaps.
hashmapPackage hashmap implements a map backed by a hash table.
linkedhashmapPackage linkedhashmap is a map that preserves insertion-order.
treebidimapPackage treebidimap implements a bidirectional map backed by two red-black tree.
treemapPackage treemap implements a map backed by red-black tree.

Package maps imports 1 packages (graph) and is imported by 34 packages. Updated 2019-06-14. Refresh now. Tools for package owners.