StringJoin
s1 <> s2 <> ...
can join a list of strings into a single string.
Attributes[StringJoin] := {Flat, OneIdentity, Protected}
Simple examples
In[2]:= "If a=2, then " <> ToString[a^2, InputForm] <> "=" <> ToString[((a^2)) /. ((a -> 2)), InputForm]
Out[2]= "If a=2, then a^2=4"
Further examples
The StringJoin
of nothing is the empty string:
StringJoin
receives any non-string arguments, the expression does not evaluate:
This function takes List
arguments as well: