LuaNET, the lua 5.1 api documentation!

Lua-Api

Core

[LUA 5.1] unpack

function unpack ( list, i, j )
Returns the elements from the given table.
This function is equivalent to
Code
return list[i], list[i+1], ..., list[j]

except that the above code can be written only for a fixed number of elements.
By default, i is 1 and j is the length of the list, as defined by the length operator.

Comments

© 2007 DracoBlue :: Valid XHTML, CSS, RSS Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC | SourceNet © 2007, DracoBlue :: Page created in 0.668 seconds with 19 queries.