As a minimal working example:
myString="some words";
myString=myString<>"more words";
Is there a shorter way to tell Mathematica that I want to "tack on" more to the end of a string? For example "C-style":
myString<>="more words";
NB: I am aware of StringInsert[myString,"more words",-1]
. I am looking specifically for an expression like <>=
where I can use shorthand like <>=
(or something else if that's not possible) to achieve the end result.
Thanks for your insight.
AddTo
equivalent for strings would significantly reduce the readability of your code. I would argue that even the regularAddTo
and friends are not all that readable. $\endgroup$Module
. However, if you want to experiment or do stuff interactively, then such shorthands are sometimes nice. $\endgroup$