Hi,
I sometimes have to do the same, and haven’t found a direct method yet.
But I’ve made an extension to add the functionality to Array.
I’ve placed a file called arrayExtend.sc in the Extensions folder (Using Extensions | SuperCollider 3.12.2 Help) with the following code in it:
+ Array {
elementsToString{
var r = "";
this.do{|e| r = r ++ e.asString};
^r;
}
}
This way I can call [1,2,3,'a',123].elementsToString which results to 123a123
(Recompile the class library, Cmd Shift L on Mac, so the function will be recognized)
Thank you very much for your kind answers. Writing an extension, using .reduce and using join are all great! They all give broad perspectives on formulating code.
Thanks again.