An open API service indexing awesome lists of open source software.

https://github.com/frozen/immutable_map

Immutalbe map based on prefix tree.
https://github.com/frozen/immutable_map

Last synced: over 1 year ago
JSON representation

Immutalbe map based on prefix tree.

Awesome Lists containing this project

README

          

```go

package main

import (
"fmt"

im "github.com/frozen/immutable_map"
)

func main() {
m := im.New()
m2 := m.Insert([]byte("value"), 5)

fmt.Println(m.Contains([]byte("value"))) // false

fmt.Println(m2.Contains([]byte("value"))) // true

fmt.Println(m2.Get([]byte("value"))) // 5, true
}

```