Documentation

Lean.Data.KVMap

inductive Lean.DataValue :

Value stored in a key-value map.

Instances For
    @[export lean_data_value_beq]
    Instances For
      @[export lean_mk_bool_data_value]
      Instances For
        @[export lean_data_value_bool]
        Instances For
          @[export lean_data_value_to_string]
          Instances For
            structure Lean.KVMap :

            A key-value map. We use it to represent user-selected options and Expr.mdata.

            Remark: we do not use RBMap here because we need to manipulate KVMap objects in C++ and RBMap is implemented in Lean. So, we use just a List until we can generate C++ code from Lean code.

            Instances For
              Instances For
                Equations
                Instances For
                  Instances For
                    Instances For
                      def Lean.KVMap.getNat (m : Lean.KVMap) (k : Lake.Name) (defVal : optParam Nat 0) :
                      Instances For
                        def Lean.KVMap.getInt (m : Lean.KVMap) (k : Lake.Name) (defVal : optParam Int 0) :
                        Instances For
                          Instances For
                            Instances For
                              Instances For
                                Instances For
                                  @[inline]
                                  def Lean.KVMap.forIn {δ : Type w} {m : Type w → Type w'} [Monad m] (kv : Lean.KVMap) (init : δ) (f : Lake.Name × Lean.DataValueδm (ForInStep δ)) :
                                  m δ
                                  Instances For
                                    Equations
                                    Instances For
                                      def Lean.KVMap.eqv (m₁ : Lean.KVMap) (m₂ : Lean.KVMap) :
                                      Instances For
                                        class Lean.KVMap.Value (α : Type) :
                                        Instances
                                          @[inline]
                                          Instances For
                                            @[inline]
                                            def Lean.KVMap.get {α : Type} [Lean.KVMap.Value α] (m : Lean.KVMap) (k : Lake.Name) (defVal : α) :
                                            α
                                            Instances For
                                              @[inline]
                                              def Lean.KVMap.set {α : Type} [Lean.KVMap.Value α] (m : Lean.KVMap) (k : Lake.Name) (v : α) :
                                              Instances For