return to top
source
If e is of the form (fun x₁ ... xₙ => f x₁ ... xₙ) and f does not contain x₁, ..., xₙ, then returns f. Otherwise, returns e.
e
(fun x₁ ... xₙ => f x₁ ... xₙ)
f
x₁
xₙ
Returns the original expression when not reducible to enable pointer equality checks.
Returns true if e can be eta-reduced. Uses pointer equality for efficiency.
true
Applies etaReduce to all subexpressions. Returns e unchanged if no subexpression is eta-reducible.
etaReduce