End
End[]
現在のコンテキストを返し,直前のコンテキストに復帰する.
詳細
- 各Endの使用は,それに先行するBeginの使用に対応しなければならない.
- End[]は,$Contextと$ContextAliasesの値を再設定する.
- End[]は,現在のコンテキストの名前を"context`"の形式の文字列として返す.
- End[]は,$ContextPathを変更しない.
例題
すべて開く すべて閉じる例 (1)
特性と関係 (3)
Begin["cont`"]は$Contextを"cont`"に設定する:
$Context = "Global`";
Begin["Example`"]
$ContextEndは$ContextをマッチするBeginの前の値に戻す:
End[];
$ContextBeginはBeginPackageとは違って$ContextPathに変更は加えない:
$ContextPath = {"Global`", "System`"};
Begin["Example`"];
$ContextPath同様に,Endもこれに変更を加えない:
End[];
$ContextPathBeginは$ContextAliasesの値を変えない:
$ContextAliases = <|"c`" -> "Context`"|>;
Begin["Example`"];
$ContextAliasesEndは$ContextAliasesをマッチするBeginの前の値に戻す:
$ContextAliases["e`"] = "Experimental`";
End[];
$ContextAliasesテクニカルノート
-
▪
- Wolfram言語パッケージ ▪
- パッケージ
関連するワークフロー
- シンボル名のシャドーイングに対処する
履歴
1988 で導入 (1.0) | 2021 で更新 (13.0)
テキスト
Wolfram Research (1988), End, Wolfram言語関数, https://reference.wolfram.com/language/ref/End.html (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_2026_end, author="Wolfram Research", title="{End}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/End.html}", note=[Accessed: 07-October-2026]}
BibLaTeX
@online{reference.wolfram_2026_end, organization={Wolfram Research}, title={End}, year={2021}, url={https://reference.wolfram.com/language/ref/End.html}, note=[Accessed: 07-October-2026]}