End

End[]

returns the present context, and reverts to the previous one.

Details

  • Every call to End must be balanced by an earlier call to Begin.
  • End[] resets the value of $Context.
  • End[] returns the present context name as a string of the form "context`".
  • End[] does not modify $ContextPath.

Examples

Basic Examples  (1)

Define a function f in the MyContext` Context:

Restore the context:

The context is now what it was before Begin was used:

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

Text

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

BibTeX

@misc{reference.wolfram_2020_end, author="Wolfram Research", title="{End}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/End.html}", note=[Accessed: 16-January-2021 ]}

BibLaTeX

@online{reference.wolfram_2020_end, organization={Wolfram Research}, title={End}, year={1988}, url={https://reference.wolfram.com/language/ref/End.html}, note=[Accessed: 16-January-2021 ]}

CMS

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

APA

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