Tables and their function

hi, i want to know why u should use some of the functions in table.

i know what means: table.create(), table.insert(),table.sort(),table.concat(), and thinks like:

local k = {}

k[1] = 'Example'

but others things like: table.pack() idk what means, why should i use it? and why exists table.unpack() while exists unpack()? what table.foreach() and table.foreach()i does? what table.getn() means? i have alot of questions that idk its response

There’s a few different functions. This page can probably help you understand them better.

If not, table.unpack gets the table supplied and gives it back as a tuple.
table.pack does the opposite (takes a tuple, gives it as array)