Documentation

Lean.Data.NameMap.Basic

def Lean.NameMap (α : Type) :
Instances For
    @[inline]
    def Lean.mkNameMap (α : Type) :
    Instances For
      @[implicit_reducible]
      instance Lean.NameMap.instRepr {α : Type} [Repr α] :
      @[implicit_reducible]
      @[implicit_reducible]
      def Lean.NameMap.insert {α : Type} (m : NameMap α) (n : Name) (a : α) :
      Instances For
        def Lean.NameMap.contains {α : Type} (m : NameMap α) (n : Name) :
        Instances For
          def Lean.NameMap.find? {α : Type} (m : NameMap α) (n : Name) :
          Instances For
            @[implicit_reducible]
            instance Lean.NameMap.instForInProdNameOfMonad {α : Type} {m : Type u_1 → Type u_2} [Monad m] :
            ForIn m (NameMap α) (Name × α)
            def Lean.NameMap.filter {α : Type} (f : NameαBool) (m : NameMap α) :

            filter f m returns the NameMap consisting of all "key/val"-pairs in m where f key val returns true.

            Instances For
              Instances For
                @[implicit_reducible]
                Instances For
                  Instances For
                    @[implicit_reducible]

                    The union of two NameSets.

                    Instances For
                      @[implicit_reducible]
                      @[implicit_reducible]
                      @[implicit_reducible]
                      @[implicit_reducible]

                      filter f s returns the NameSet consisting of all x in s where f x returns true.

                      Instances For
                        Instances For
                          Instances For
                            @[reducible, inline]
                            Instances For
                              @[implicit_reducible]
                              @[reducible, inline]
                              Instances For
                                @[reducible, inline]
                                Instances For
                                  Instances For
                                    @[inline]
                                    Instances For

                                      filter f s returns the NameHashSet consisting of all x in s where f x returns true.

                                      Instances For