Difference between revisions of "Table.concat"
From OpenEUO
(Created page with " table.concat (table [, sep [, i [, j]]]) Given an array where all elements are strings or numbers, returns table[i]..sep..table[i+1] ··· sep..table[j]. The default value for ...") |
|||
Line 1: | Line 1: | ||
table.concat (table [, sep [, i [, j]]]) | table.concat (table [, sep [, i [, j]]]) | ||
Given an array where all elements are strings or numbers, returns table[i]..sep..table[i+1] ··· sep..table[j]. The default value for sep is the empty string, the default for i is 1, and the default for j is the length of the table. If i is greater than j, returns the empty string. | Given an array where all elements are strings or numbers, returns table[i]..sep..table[i+1] ··· sep..table[j]. The default value for sep is the empty string, the default for i is 1, and the default for j is the length of the table. If i is greater than j, returns the empty string. | ||
+ | |||
+ | [http://www.lua.org/manual/5.1/manual.html#2.5.4 Lua Manual - Concatenation Operator (..)] |
Revision as of 13:18, 9 October 2010
table.concat (table [, sep [, i [, j]]])
Given an array where all elements are strings or numbers, returns table[i]..sep..table[i+1] ··· sep..table[j]. The default value for sep is the empty string, the default for i is 1, and the default for j is the length of the table. If i is greater than j, returns the empty string.