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.
Flattens a hierarchy of arrays into a single array containing all of the values.
table.flatten(arr)
arr is an table containing indexed values, which may themselves also contain indexed values.
arr
A new array containing all of the elements, nested or otherwise.
Premake 5.0 or later.
-- returns { "A", "B", "C", "D" } flat = table.flatten { "A", { "B", "C", { "D" } } }