st.table — Table Extensions
st_libs extends the global table library with the following functions:
lua
table.contains(tbl, value) -- boolean, works for scalar values and sub-tables
table.matches(t1, t2) -- deep equality check
table.deepclone(tbl) -- recursive clone (no shared references)
table.merge(t1, t2, addDuplicateNumbers) -- merge t2 into t1; numbers add by default
table.copy(tbl) -- shallow clone with metatable
table.count(tbl) -- count all keys (including non-sequential)
table.isEmpty(tbl) -- boolean, true if no keys
table.freeze(tbl) -- make table read-only
table.isfrozen(tbl) -- boolean
table.print_r(tbl) -- pretty-print table to console