Documentation

Lean.Util.ForEachExpr

partial def Lean.ForEachExpr.visit {ω : Type} {m : TypeType} [inst : STWorld ω m] [inst : MonadLiftT (ST ω) m] [inst : Monad m] (g : Lean.Exprm Bool) (e : Lean.Expr) :
@[inline]
def Lean.Expr.forEach' {ω : Type} {m : TypeType} [inst : STWorld ω m] [inst : MonadLiftT (ST ω) m] [inst : Monad m] (e : Lean.Expr) (f : Lean.Exprm Bool) :

Apply f to each sub-expression of e. If f t returns false, then t's children are not visited.

Equations
@[inline]
def Lean.Expr.forEach {ω : Type} {m : TypeType} [inst : STWorld ω m] [inst : MonadLiftT (ST ω) m] [inst : Monad m] (e : Lean.Expr) (f : Lean.Exprm Unit) :
Equations