Tables

srb_lib comes with some tables useful functions.

--- Recursively print key/values of a table
---@param tbl table
---@param indent number
---@param done table
function SRB:PrintTable(tbl, indent, done)

Table Inherit Shared

--- Copies any missing data from base to tbl
---@param tbl table
---@param base table
---@return table
function SRB:table_Inherit(tbl, base)

Table Is Empty Shared

--- Returns whether a table has iterable items in it, useful for non-sequential tables
---@param tbl table
---@return bool
function SRB:table_isEmpty(tbl)

Table Has Value Shared

Table Sort Desc Shared

Table Sort by Key Shared

Table Random Shared

Table Shuffle Shared

Table Key from Value Shared

Table Add Shared

Table Remove by Value Shared

Table get Keys Shared

Table clear Keys Shared

Table Collapse Key Value Shared

Table Copy Shared

Table Copy From Shared

Table Count Shared

Table Empty Shared

Table Merge Shared

Table Sorted Pairs Shared

Last updated