Difference between revisions of "Tuple"
From OpenEUO
m (Created page with "== Definition == A tuple is an ordered sequence of elements. Functions in lua can return more than one value at a time. E.g., local b = function(...) local a = {...} ...") |
(No difference)
|
Revision as of 14:27, 1 November 2010
Definition
A tuple is an ordered sequence of elements. Functions in lua can return more than one value at a time. E.g.,
local b = function(...)
local a = {...}
local c = select('#',...)
return unpack(a)
end