Mathematica > Core Language > Package Development > Namespace Management > End >

End

End
returns the present context, and reverts to the previous one.
  • Every call to End must be balanced by an earlier call to Begin.
  • End returns the present context name as a string of the form .
Define a function in the Context:
Restore the context:
The context is now what it was before Begin was used:
Define a function in the Context:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Restore the context:
In[4]:=
Click for copyable input
Out[4]=
The context is now what it was before Begin was used:
In[5]:=
Click for copyable input
Out[5]=
New in 1
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF