Documentation

Cryptlib.Protocols.GroupComm.Common.Dict

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.

Instances For
    def Cryptlib.Protocols.GroupComm.Common.instDecidableEqDict.decEq {K✝ V✝ : Type} [DecidableEq K✝] [DecidableEq V✝] (x✝ x✝¹ : Dict K✝ V✝) :
    Decidable (x✝ = x✝¹)
    Equations
    Instances For
      Equations
      Instances For
        def Cryptlib.Protocols.GroupComm.Common.Dict.getD {K V : Type} [DecidableEq K] (d : Dict K V) (k : K) (v : V) :
        V
        Equations
        Instances For
          Equations
          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.

              Equations
              Instances For
                def Cryptlib.Protocols.GroupComm.Common.Dict.modify {K V : Type} [DecidableEq K] (d : Dict K V) (k : K) (f : V → V) :
                Dict K V
                Equations
                Instances For
                  Equations
                  Instances For
                    Equations
                    Instances For
                      Equations
                      Instances For
                        Equations
                        Instances For
                          def Cryptlib.Protocols.GroupComm.Common.Dict.filter {K V : Type} (d : Dict K V) (p : K → V → Bool) :
                          Dict K V
                          Equations
                          Instances For
                            def Cryptlib.Protocols.GroupComm.Common.Dict.mapValues {K V W : Type} (d : Dict K V) (f : V → W) :
                            Dict K W
                            Equations
                            Instances For
                              def Cryptlib.Protocols.GroupComm.Common.Dict.mapWithKey {K V W : Type} (d : Dict K V) (f : K → V → W) :
                              Dict K W
                              Equations
                              Instances For

                                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.
                                Instances For