TemplateWith

TemplateWith["name"value,expr]

TemplateSlot["name"]value で置換した後で expr を評価する,テンプレートオブジェクトの要素を表す.

TemplateWith[{"name1"value1,"name2"value2, },expr]

キーと値のペアのリストで expr を評価する.

詳細

例題

  (1)

TemplateSlotを使う:

複数の変数を結び付ける:

TemplateExpressionで評価をホールドする:

TemplateWithを使ってTemplateSlotデータを変換する:

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

テキスト

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_templatewith, organization={Wolfram Research}, title={TemplateWith}, year={2014}, url={https://reference.wolfram.com/language/ref/TemplateWith.html}, note=[Accessed: 21-November-2024 ]}