immap

package
v0.1.117 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmptyImmutableMapAny = ImmutableMap[any]{}

EmptyImmutableMap is the canonical empty map.

Functions

This section is empty.

Types

type ImmutableMap

type ImmutableMap[T any] map[string]T

func EmptyImmutableMap

func EmptyImmutableMap[T any]() ImmutableMap[T]

func (ImmutableMap[T]) Assoc

func (m ImmutableMap[T]) Assoc(k string, v T) ImmutableMap[T]

Assoc returns a new map with (k,v) added. The receiver is unchanged.

func (ImmutableMap[T]) Find

func (m ImmutableMap[T]) Find(k string) (T, bool)

Find returns the value for key k and whether it was present. Mirrors the real slot-table lookup semantics.

Jump to

Keyboard shortcuts

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