IdentityMap (Anoma v0.29.0)
A map with an identity value; all keys not explicitly assigned a value map to the identity.
Summary
Types
Link to this type
t(k, v)
@type t(k, v) :: %IdentityMap{ identity: k, identityp: function(), map: %{required(k) => v} }
Functions
Link to this function
get(map, key)
@spec get(t(key(), value()), key()) :: value()
Link to this function
new(from \\ %{}, identity, identityp)
Link to this function
put(map, key, value)
Link to this function