Returns the next key/value pair in a table


See also Lua library functions.

Signature:

nextKey, nextValue = next(t [, key])

Arguments:

  • t - A table (table)
  • key - A key in the table (value)

Returns:

  • nextKey - The next key in the table t (value)
  • nextValue - Value associated with the next key in the table t (value)
This function is defined in the Lua standard libraries