I remember seeing a recipe to take an expression and evaluate every Head that matches pattern x, while leaving subexpressions with non-matching heads unevaluated. I can’t find this recipe anymore, does anyone know the right way to do this?
Share
This one is from Ted Ersek’s Mathematica Tricks under “Clever Little Programs”.
Thanks to @TomD for the pointer.
Edit
It seems to work also with Hold[], but I never ran a deep test.