Here is what I have tried first.
Thread[f["x", {"1", "2"}]]
{f["x", "1"], f["x", "2"]}
But the weirdest thing happened when I substituted StringJoin
for f
Thread[StringJoin["x", {"1", "2"}]]
"x12"
I thought it would be like this below
{"x1","x2"}
Is there anyone who can explain this?
Thread
for this?Table["x"<>n, {n, {"1","2"}}]
or"x"<>#&/@{"1","2"}
seem like more straightforward ways to get this result. $\endgroup$