LuaNET, the lua 5.1 api documentation!

Lua-Api

Core

[LUA 5.1] ipairs

function ipairs ( t )
Returns three values: an iterator function, the table t, and 0, so that the construction
Code
for i,v in ipairs(t) do body end

will iterate over the pairs (1,t[1]), (2,t[2]), ···, up to the first integer key absent from the table.

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.085 seconds with 22 queries.