Skip to main content

HELIXTable

A table containing useful and aux table functions.

🗿Static Class
This is a Static Class. Access it's methods directly with .. It's not possible to spawn new instances.

Examples​

local table = {
"my_key" = 123,
[2] = "my_value"
}

local dump_text = HELIXTable.Dump(table)

Console.Log(dump_text)

-- Outputs Text
--[[
{
"my_key": 123,
2 = "my_value"
}
--]]

Static Functions​

ReturnsNameDescription
stringDumpDumps a table into a readable text
tableShallowCopyPerforms a shallow copy of a table

Dump​

Dumps a table into a readable text

— Returns string (the table as readable text).

local ret = HELIXTable.Dump(table)
TypeParameterDefaultDescription
tabletableTable to dump

ShallowCopy​

Performs a shallow copy of a table

— Returns table (the copied table).

local ret = HELIXTable.ShallowCopy(table)
TypeParameterDefaultDescription
tabletableThe table to shallow copy