StackBegin

StackBegin[expr]
evaluates expr, starting a fresh evaluation stack.

DetailsDetails

  • You can use StackBegin to prevent "outer" evaluations from appearing in the evaluation stack when you call Stack.
  • StackBegin has attribute HoldFirst.
  • A StackBegin is automatically done when the evaluation of each input line begins in an interactive Mathematica session.

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

Show only the evaluations being done inside of f:

In[1]:=
Click for copyable input
Out[1]=

Get the detailed stack contents:

In[1]:=
Click for copyable input
Out[1]=
New in 2
New to Mathematica? Find your learning path »
Have a question? Ask support »