# table Library 📚

Provides functions for manipulating tables. Accessed via table.<function>.

Function Signature Description
table.concat(list, [sep, [i, [j]]]) Concatenates table elements from i to j with sep.
table.foreach(table, f) Deprecated. Executes f for each key-value pair in table.
table.foreachi(table, f) Deprecated. Executes f for each numerical index in table.
table.insert(list, [pos,] value) Inserts value into list at pos (default end).
table.maxn(table) Deprecated. Returns the largest numerical key in table.
table.remove(list [, pos]) Removes element at pos (default last) from list.
table.sort(list [, comp]) Sorts elements of list in-place.
table.getn(table) Deprecated alias for the length operator #.
table.setn(table, n) Deprecated. (Intended for pre-sized arrays, rarely used).