End

End[]

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

Details

Examples

open allclose all

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:

Properties & Relations  (3)

Begin["cont`"] sets $Context to "cont`":

End restores $Context to its value before the matching Begin:

Unlike BeginPackage, Begin does not modify $ContextPath:

Similarly, End does not modify it, either:

Begin does not alter the value of $ContextAliases:

End restores $ContextAliases to its value before the matching Begin:

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

Text

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

CMS

Wolfram Language. 1988. "End." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. 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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_end, organization={Wolfram Research}, title={End}, year={2021}, url={https://reference.wolfram.com/language/ref/End.html}, note=[Accessed: 17-November-2024 ]}