Returns true if e occurs in t
Equations
- e.occurs t = (Lean.Expr.find? (fun (s : Lean.Expr) => s == e) t).isSome
Instances For
Returns type for findExt? function argument.
- found : Lean.Expr.FindStep
Found desired subterm
- visit : Lean.Expr.FindStep
Search subterms
- done : Lean.Expr.FindStep
Do not search subterms
Instances For
@[extern lean_find_ext_expr]
@[inline]
Similar to find?, but p can return FindStep.done to interrupt the search on subterms.
Remark: Differently from find?, we do not invoke p for partial applications of an application.