table.foreachi

From Garry's Mod
Jump to: navigation, search
 table.foreachi( )

Description

This feature is deprecated.
You should avoid using it as it may be removed in a future version.

This was deprecated in Lua 5.1 and removed in 5.2. You should use ipairs() instead.
Iterates for each numeric index in the table in order.

This is inherited from the original Lua implementation and is deprecated in Lua as of 5.1; see here. You should use ipairs() instead.

Arguments

table table

The table to iterate over.

Arguments

function func

The function to run for each index.
Personal tools
Navigation