Returns an iterator function for integer keys in a table. Return values are such that the construction
for k,v in ipairs(t) do
-- body
end
will iterate over the pairs 1,t[1]
, 2,t[2]
, etc, up to the first integer key absent from the table.
See also Lua library functions.
Signature:
iterator,
t,
index
=
ipairs(t)
Arguments:
t
- A table (table
)
Returns:
iterator
- An iterator (function
)t
- The table provided (table
)index
- Always 0; used internally (number
)
This function is defined in the Lua standard libraries