StackBegin

StackBegin[expr]

evaluates expr, starting a fresh evaluation stack.

Details

  • 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 Wolfram System session.

Examples

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]=

See Also

Stack  StackInhibit

Tutorials

Introduced in 1991
(2.0)