Documentation

Lean.Data.PersistentHashSet

structure Lean.PersistentHashSet (α : Type u) [inst : BEq α] [inst : Hashable α] :
Type u
Instances For
    @[inline]
    abbrev Lean.PHashSet (α : Type u) [inst : BEq α] [inst : Hashable α] :
    Type u
    Equations
    @[inline]
    def Lean.PersistentHashSet.empty {α : Type u_1} [inst : BEq α] [inst : Hashable α] :
    Equations
    • Lean.PersistentHashSet.empty = { set := Lean.PersistentHashMap.empty }
    Equations
    • Lean.PersistentHashSet.instInhabitedPersistentHashSet = { default := Lean.PersistentHashSet.empty }
    Equations
    • Lean.PersistentHashSet.instEmptyCollectionPersistentHashSet = { emptyCollection := Lean.PersistentHashSet.empty }
    @[inline]
    def Lean.PersistentHashSet.insert {α : Type u_1} :
    {x : BEq α} → {x_1 : Hashable α} → Lean.PersistentHashSet α → α → Lean.PersistentHashSet α
    Equations
    @[inline]
    def Lean.PersistentHashSet.erase {α : Type u_1} :
    {x : BEq α} → {x_1 : Hashable α} → Lean.PersistentHashSet α → α → Lean.PersistentHashSet α
    Equations
    @[inline]
    def Lean.PersistentHashSet.find? {α : Type u_1} :
    {x : BEq α} → {x_1 : Hashable α} → Lean.PersistentHashSet α → α → Option α
    Equations
    @[inline]
    def Lean.PersistentHashSet.contains {α : Type u_1} :
    {x : BEq α} → {x_1 : Hashable α} → Lean.PersistentHashSet α → α → Bool
    Equations
    @[inline]
    def Lean.PersistentHashSet.size {α : Type u_1} :
    {x : BEq α} → {x_1 : Hashable α} → Lean.PersistentHashSet α → Nat
    Equations
    @[inline]
    def Lean.PersistentHashSet.foldM {α : Type u_1} :
    {x : BEq α} → {x_1 : Hashable α} → {β : Type v} → {m : Type v → Type v} → [inst : Monad m] → (β → α → m β) → β → Lean.PersistentHashSet α → m β
    Equations
    @[inline]
    def Lean.PersistentHashSet.fold {α : Type u_1} :
    {x : BEq α} → {x_1 : Hashable α} → {β : Type v} → (β → α → β) → β → Lean.PersistentHashSet α → β
    Equations