Converts an array of strings into a specially formatted string.
The output string follows the format: "length1_length2_...@stringData",
where "length1_length2_..." is the header indicating the length of each string in the input array,
and "stringData" is the concatenation of all strings in the input array.
Parameters
...strArray: string[]
An array of strings to be converted. The function accepts a variable number of string arguments.
Returns string
A specially formatted string if the input array is not empty, otherwise a string with an empty header and empty data.
Converts an array of strings into a specially formatted string. The output string follows the format: "length1_length2_...@stringData", where "length1_length2_..." is the header indicating the length of each string in the input array, and "stringData" is the concatenation of all strings in the input array.