Documentation

Aesop.Util.OrderedHashSet

structure Aesop.OrderedHashSet (α : Type u_1) [BEq α] [Hashable α] :
Type u_1

A hash set that preserves the order of insertions.

Instances For
    def Aesop.instInhabitedOrderedHashSet.default {a✝ : Type u_1} {a✝¹ : BEq a✝} {a✝² : Hashable a✝} :
    Equations
    Instances For
      Equations
      def Aesop.OrderedHashSet.insert {α : Type u_1} [BEq α] [Hashable α] (x : α) (s : OrderedHashSet α) :
      Equations
      Instances For
        def Aesop.OrderedHashSet.insertMany {α : Type u_1} [BEq α] [Hashable α] {ρ : Type u_2} [ForIn Id ρ α] (xs : ρ) (s : OrderedHashSet α) :
        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          def Aesop.OrderedHashSet.contains {α : Type u_1} [BEq α] [Hashable α] (x : α) (s : OrderedHashSet α) :
          Equations
          Instances For
            @[specialize #[]]
            def Aesop.OrderedHashSet.foldlM {α : Type u_1} [BEq α] [Hashable α] {m : Type u_2 → Type u_3} {β : Type u_2} [Monad m] (f : βαm β) (init : β) (s : OrderedHashSet α) :
            m β
            Equations
            Instances For
              def Aesop.OrderedHashSet.foldl {α : Type u_1} [BEq α] [Hashable α] {β : Type u_2} (f : βαβ) (init : β) (s : OrderedHashSet α) :
              β
              Equations
              Instances For
                @[specialize #[]]
                def Aesop.OrderedHashSet.foldrM {α : Type u_1} [BEq α] [Hashable α] {m : Type u_2 → Type u_3} {β : Type u_2} [Monad m] (f : αβm β) (init : β) (s : OrderedHashSet α) :
                m β
                Equations
                Instances For
                  def Aesop.OrderedHashSet.foldr {α : Type u_1} [BEq α] [Hashable α] {β : Type u_2} (f : αββ) (init : β) (s : OrderedHashSet α) :
                  β
                  Equations
                  Instances For
                    instance Aesop.OrderedHashSet.instForIn {α : Type u_1} [BEq α] [Hashable α] {m : Type u_2 → Type u_3} :
                    Equations