Table page reference doesn't have new functions

https://developer.roblox.com/en-us/api-reference/lua-docs/table is missing a few of the latest functions as described in Luau Progress Recap, such as:

table.pack
table.unpack
table.move
table.create
table.find
9 Likes

Gone are the days of writing a loop to find anything in an array. How did I not know about this before?

1 Like

Ask and ye shall receive. I’ve updated the docs.

Screenshots of the functions' entries




2 Likes

table.pack is listed as returning Variant, even though it should only return table.

table.find is listed as returning Variant, even though it should be listed as returning int (and returning nil when needle isn’t found).

1 Like

That’s not necessarily an accurate representation of table.create. It doesn’t specify that it pre-allocates the table or that the second argument is optional. I realize that the internals of Lua tables may be beyond the scope of the developer hub, but mentioning it for power users (which is why the function was added) should be a priority.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.