LuaNET, the lua 5.1 api documentation!

Lua-Api

Core

[LUA 5.1] pairs

function pairs ( t )
Returns three values: the next function, the table t, and nil, so that the construction
Code
for k,v in pairs(t) do body end

will iterate over all key–value pairs of table t.

See functionnext for the caveats of modifying the table during its traversal.

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.081 seconds with 20 queries.