Qurak

TemplateApply

Verfügbar

Fills the slots of a template string.

TemplateApply[template]
TemplateApply[template, args]
TemplateApply["x = `x`", <|"x" -> 1|>] → x = 1TemplateApply[StringTemplate["Hello, my name is ``."], {"Bob"}] → Hello, my name is Bob.TemplateApply["x <*2^3*> y"] → x 8 yTemplateApply[{a, TemplateSequence[b, {1, 2, 3}], c}] → {a, b, b, b, c}TemplateApply[{a, TemplateIf[False, x, y], c}] → {a, y, c}

Themen

Verwandt

Alle 6300 Funktionen · Dies aus einem MCP-Client verwenden