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 ...")  | 
				|||
| (One intermediate revision by the same user not shown) | |||
| 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.  | ||
| + | |||
| + | [[Select]]  | ||
| + | |||
| + | [[Unpack]]  | ||
| + | |||
| + | [http://www.lua.org/manual/5.1/manual.html#2.5.4 Lua Manual - Concatenation Operator (..)]  | ||
| + | |||
| + | [http://www.lua.org/manual/5.1/manual.html#2.5.5 Lua Manual - The length operator #]  | ||
| + | |||
| + | [http://www.lua.org/manual/5.1/manual.html#2.5.9 Lua Manual - Variadic Expressions (...)]  | ||
Latest revision as of 12:20, 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.
Lua Manual - Concatenation Operator (..)