Skip to content

pairs

pairs(table)

Returns three values: the next function, the table, and nil. Each time the next function is called, it returns a key-value pair from the table.