Difference between revisions of "Select"

From OpenEUO
Jump to: navigation, search
Line 2: Line 2:
  
 
If index is a number, returns all arguments after argument number index. Otherwise, index must be the string "#", and select returns the total number of extra arguments it received.
 
If index is a number, returns all arguments after argument number index. Otherwise, index must be the string "#", and select returns the total number of extra arguments it received.
 +
 +
[Table.concat]
  
 
[[Unpack]]
 
[[Unpack]]
  
 
[http://www.lua.org/manual/5.1/manual.html#2.5.9 Lua Manual - Variadic Expressions (...)]
 
[http://www.lua.org/manual/5.1/manual.html#2.5.9 Lua Manual - Variadic Expressions (...)]

Revision as of 13:19, 9 October 2010

select (index, ···)

If index is a number, returns all arguments after argument number index. Otherwise, index must be the string "#", and select returns the total number of extra arguments it received.

[Table.concat]

Unpack

Lua Manual - Variadic Expressions (...)