Per Hedbor () @ Pike (-) developers forum wrote:
How about having a specific function for that instead of (string)?
From a performance standpoint, that shouldn't be a problem.
Any suggestions as to the name of the function?
I'd say something like:
gather(({"abc",({65,65,66}),"def",65})) => "abcAABdefB"
The original magic '*' operator can be implemented using
array magic = ({"abc",({65,65,66}),"def"});
((array(string))magic)*"x"
Yes, but that kills performance, since it creates a (at least one) temporary string (per subarray) in the process.
without special code in '*', btw.
If gather() (as above) is allowed in, then I can take out the changes to "*" (except perhaps the tighter error checks which seem prudent).