Some table functions only affect their array parts, while the other part affects the entire table. The following will be explained separately.
Copy the codeThe code is as follows:
(table, sep, start, end)
concat is the abbreviation of concatenate (chain, connection). The () function lists all elements in the array part of the specified table in the parameter from the start position to the end position, and the elements are separated by the specified separator (sep). Except for table, other parameters are not required. The default value of the separator is an empty character, the default value of start is 1, and the default value of end is the total length of the array part.
The three parameters sep, start, and end are read in sequence, so although they are not necessary parameters, if you want to specify the later parameters, the previous parameters must be specified at the same time.
The code is as follows:
Copy the codeThe code is as follows:
local string_concat = {"string", "int", "char", "float", "double"}
local _tempStore_string = (string_concat,"\n",3);
print(_tempStore_string)