- set : PersistentHashMap α Unit
Instances For
@[reducible, inline]
Equations
Instances For
@[inline]
Equations
Instances For
@[instance_reducible]
Equations
@[instance_reducible]
Equations
- Lean.PersistentHashSet.instEmptyCollection = { emptyCollection := Lean.PersistentHashSet.empty }
@[inline]
def Lean.PersistentHashSet.insert {α : Type u_1} {x✝ : BEq α} {x✝¹ : Hashable α} (s : PersistentHashSet α) (a : α) :
Instances For
@[inline]
def Lean.PersistentHashSet.erase {α : Type u_1} {x✝ : BEq α} {x✝¹ : Hashable α} (s : PersistentHashSet α) (a : α) :
Instances For
@[inline]
def Lean.PersistentHashSet.findD {α : Type u_1} {x✝ : BEq α} {x✝¹ : Hashable α} (s : PersistentHashSet α) (a a₀ : α) :
α
Instances For
@[inline]
def Lean.PersistentHashSet.foldM {α : Type u_1} {x✝ : BEq α} {x✝¹ : Hashable α} {β : Type v} {m : Type v → Type w} [Monad m] (f : β → α → m β) (init : β) (s : PersistentHashSet α) :
m β
Equations
- Lean.PersistentHashSet.foldM f init s = s.set.foldlM (fun (d : β) (a : α) (x : Unit) => f d a) init
Instances For
@[inline]
def Lean.PersistentHashSet.fold {α : Type u_1} {x✝ : BEq α} {x✝¹ : Hashable α} {β : Type v} (f : β → α → β) (init : β) (s : PersistentHashSet α) :
β
Equations
- Lean.PersistentHashSet.fold f init s = (Lean.PersistentHashSet.foldM (fun (x1 : β) (x2 : α) => pure (f x1 x2)) init s).run
Instances For
def Lean.PersistentHashSet.forIn {α : Type u_1} {m : Type u_2 → Type u_3} {σ : Type u_2} {x✝ : BEq α} {x✝¹ : Hashable α} [Monad m] (s : PersistentHashSet α) (init : σ) (f : α → σ → m (ForInStep σ)) :
m σ
Instances For
@[instance_reducible]
instance Lean.PersistentHashSet.instForInOfMonad {α : Type u_1} {m : Type u_2 → Type u_3} {x✝ : BEq α} {x✝¹ : Hashable α} [Monad m] :
ForIn m (PersistentHashSet α) α
Equations
- Lean.PersistentHashSet.instForInOfMonad = { forIn := fun {β : Type ?u.2} => Lean.PersistentHashSet.forIn }