#309 coordinator monitor configuration

This commit is contained in:
Mikayla Fischler
2024-02-14 09:43:30 -05:00
parent 34cbb6be39
commit 108cf75cad
2 changed files with 292 additions and 41 deletions

View File

@@ -348,6 +348,16 @@ function util.table_contains(t, element)
return false
end
-- count the length of a table, even if the values are not sequential or contain named keys
---@nodiscard
---@param t table
---@return integer length
function util.table_len(t)
local n = 0
for _, _ in pairs(t) do n = n + 1 end
return n
end
--#endregion
--#region MEKANISM POWER