Documentation

Lean.Util.FoldConsts

unsafe def Lean.Expr.FoldConstsImpl.fold {α : Type} (f : Nameαα) (e : Expr) (acc : α) :
Equations
unsafe def Lean.Expr.FoldConstsImpl.fold.visit {α : Type} (f : Nameαα) (e : Expr) (acc : α) :
Equations
  • One or more equations did not get rendered due to their size.
@[inline]
unsafe def Lean.Expr.FoldConstsImpl.foldUnsafe {α : Type} (e : Expr) (init : α) (f : Nameαα) :
α
Equations
@[implemented_by Lean.Expr.FoldConstsImpl.foldUnsafe]
opaque Lean.Expr.foldConsts {α : Type} (e : Expr) (init : α) (f : Nameαα) :
α

Apply f to every constant occurring in e once.

Return all names appearing in the type or value of a ConstantInfo.

Equations