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 ¶
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.
Click to show internal directories.
Click to hide internal directories.