Documentation

Lean.Util.NumApps

@[reducible, inline]
unsafe abbrev Lean.Expr.NumApps.M (α : Type) :
Equations
Equations
  • One or more equations did not get rendered due to their size.
Equations
def Lean.Expr.numApps (e : Expr) (threshold : Nat := 0) :

Returns the number of applications for each declaration used in e.

This operation is performed in IO because the result depends on the memory representation of the object.

Note: Use this function primarily for diagnosing performance issues.

Equations
  • One or more equations did not get rendered due to their size.