StringForm
with named arguments
In python, this is possible:
example:
a = "{x}, {y}".format(x=5, y=12)
print(a)
result:
5, 12
In Mathematica, I used
StringForm ["``,``",5,12]
but I couldn't use named arguments.
Is there any way to do this in Mathematica? like a :
StringForm ["`x`,`y`",x->5, y->12]
StringTemplate[" `x` , `y`"][<|"x" -> 1, "y" -> 2|>]
orTemplateApply["`a`,`b`", <|"a" -> 1, "b" -> 2|>]
? $\endgroup$