EndPackagerestores $Context and $ContextPath to their values before the preceding BeginPackage, and prepends the current context to the list $ContextPath.
Commands to define a simple package:
Modify the context and context path so that symbol creation and lookup use :
Here are the commands defining the function in the package:
Restore the context, but leave on the context path for symbol lookup:
The context is now the same as the original:
The context path is the same as the original, but with prepended: