ValuePreprocessingFunction

ValuePreprocessingFunction

PersistentSymbolInitializationValue等の関数のオプションで,これから割り当てる新たな値に適用する関数を指定する.

詳細

例題

  (1)

整数のみを取る,値の前処理関数を定義する:

"int"という名前の永続値について,デフォルト値と値前処理関数を設定する:

任意の永続値の場所で整数を割り当てる:

それ以外の何を割り当ててもエラーが生成され,割当ては行われない:

Wolfram Research (2017), ValuePreprocessingFunction, Wolfram言語関数, https://reference.wolfram.com/language/ref/ValuePreprocessingFunction.html.

テキスト

Wolfram Research (2017), ValuePreprocessingFunction, Wolfram言語関数, https://reference.wolfram.com/language/ref/ValuePreprocessingFunction.html.

CMS

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

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_valuepreprocessingfunction, organization={Wolfram Research}, title={ValuePreprocessingFunction}, year={2017}, url={https://reference.wolfram.com/language/ref/ValuePreprocessingFunction.html}, note=[Accessed: 22-November-2024 ]}