We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
⚠️ We have a new website! Visit now for the most update to date documentation. This wiki is no longer being maintained.
Inserts a value of array of values into a table. If the value is itself a table, its contents are enumerated and added instead.
table.insertflat(arr, values)
arr is a table containing indexed elements. values is a value or array of values to insert.
arr
values
Returns arr with the new values added in place.
Premake 5.0 or later.
-- returns { "x", "y" } table.insertflat({ "x" }, "y") -- returns { "x", "y", "z" } table.insertflat({ "x" }, { "y", { "z" } })