table | Documentation - Roblox Creator Hub is missing a few of the latest functions as described in Luau Recap: November 2019, such as:
table.pack
table.unpack
table.move
table.create
table.find
table | Documentation - Roblox Creator Hub is missing a few of the latest functions as described in Luau Recap: November 2019, such as:
table.pack
table.unpack
table.move
table.create
table.find
Gone are the days of writing a loop to find anything in an array. How did I not know about this before?
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).
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.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.