Is there a bit of syntactic sugar for prefixing data to the beginning of a string in a similar way to how += appends to a string?
Just use:
x = "prefix" + x;
There's no compound assignment operator that does this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With