IdentityMap (Anoma v0.25.0)

A map with an identity value; all keys not explicitly assigned a value map to the identity.

Summary

Types

@type t(k, v) :: %IdentityMap{
  identity: k,
  identityp: function(),
  map: %{required(k) => v}
}

Functions

Link to this function

new(from \\ %{}, identity, identityp)

Link to this function

put(map, key, value)

Link to this function

update(map, key, fun)