Hey,
I'm having trouble understanding why my function below needs the HoldAll attribute. My goal was to write a function that outputs the trace steps with frames around them.
Also... is there a more elegant way to achieve this?
Clear[traceFramed];
SetAttributes[traceFramed, HoldAll];
traceFramed[f_[n_Integer], filter_ : _] :=
Column[Framed[#, FrameMargins -> Large] & /@ Trace[f[n], filter]];
Example: traceFramed[Range[5]]
Thank you very much!