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 语言. 2017. "ValuePreprocessingFunction." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/ValuePreprocessingFunction.html.

APA

Wolfram 语言. (2017). ValuePreprocessingFunction. Wolfram 语言与系统参考资料中心. 追溯自 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 ]}