Skip to content

Commit

Permalink
chore: add forEachEqc
Browse files Browse the repository at this point in the history
  • Loading branch information
leodemoura committed Dec 24, 2024
1 parent ec80de2 commit 6b8caf7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Lean/Meta/Tactic/Grind/Types.lean
Original file line number Diff line number Diff line change
Expand Up @@ -429,4 +429,10 @@ def filterENodes (p : ENode → GoalM Bool) : GoalM (Array ENode) := do
ref.modify (·.push n)
ref.get

def forEachEqc (f : ENode → GoalM Unit) : GoalM Unit := do
let nodes ← getENodes
for n in nodes do
if isSameExpr n.self n.root then
f n

end Lean.Meta.Grind

0 comments on commit 6b8caf7

Please sign in to comment.