Qurak

TemplateApply

Disponible

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}

Thèmes

Connexes

Les 6300 fonctions · Utiliser ceci depuis un client MCP