Difference between revisions of "Tuple"

From OpenEUO
Jump to: navigation, search
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


See Also