A map that keeps insertion order #
Setting a present key replaces its value in place; setting a new key appends it; erasing keeps the order of the rest.
@[instance_reducible]
def
Cryptlib.Protocols.GroupComm.Common.instDecidableEqDict.decEq
{K✝ V✝ : Type}
[DecidableEq K✝]
[DecidableEq V✝]
(x✝ x✝¹ : Dict K✝ V✝)
:
Equations
Instances For
@[instance_reducible]
instance
Cryptlib.Protocols.GroupComm.Common.instDecidableEqDict
{K✝ V✝ : Type}
[DecidableEq K✝]
[DecidableEq V✝]
:
DecidableEq (Dict K✝ V✝)
Instances For
@[instance_reducible]
instance
Cryptlib.Protocols.GroupComm.Common.Dict.instEmptyCollection
{K V : Type}
:
EmptyCollection (Dict K V)
Equations
def
Cryptlib.Protocols.GroupComm.Common.Dict.get?
{K V : Type}
[DecidableEq K]
(d : Dict K V)
(k : K)
:
Option V
Equations
Instances For
def
Cryptlib.Protocols.GroupComm.Common.Dict.getD
{K V : Type}
[DecidableEq K]
(d : Dict K V)
(k : K)
(v : V)
:
V
Instances For
def
Cryptlib.Protocols.GroupComm.Common.Dict.contains
{K V : Type}
[DecidableEq K]
(d : Dict K V)
(k : K)
:
Instances For
def
Cryptlib.Protocols.GroupComm.Common.Dict.set
{K V : Type}
[DecidableEq K]
(d : Dict K V)
(k : K)
(v : V)
:
Dict K V
Equations
Instances For
def
Cryptlib.Protocols.GroupComm.Common.Dict.setDefault
{K V : Type}
[DecidableEq K]
(d : Dict K V)
(k : K)
(v : V)
:
Dict K V
Set k only if it is absent.
Instances For
def
Cryptlib.Protocols.GroupComm.Common.Dict.ofList
{K V : Type}
[DecidableEq K]
(l : List (K × V))
:
Dict K V
Build a map from pairs in order; a later value for a key replaces an earlier one in place.
Equations
- One or more equations did not get rendered due to their size.