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:

Get the detailed stack contents:

Wolfram Research (1991), StackBegin, Wolfram Language function, https://reference.wolfram.com/language/ref/StackBegin.html.

Text

Wolfram Research (1991), StackBegin, Wolfram Language function, https://reference.wolfram.com/language/ref/StackBegin.html.

CMS

Wolfram Language. 1991. "StackBegin." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/StackBegin.html.

APA

Wolfram Language. (1991). StackBegin. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/StackBegin.html

BibTeX

@misc{reference.wolfram_2024_stackbegin, author="Wolfram Research", title="{StackBegin}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/StackBegin.html}", note=[Accessed: 22-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_stackbegin, organization={Wolfram Research}, title={StackBegin}, year={1991}, url={https://reference.wolfram.com/language/ref/StackBegin.html}, note=[Accessed: 22-December-2024 ]}