Module:TableUtil: Revision history

From Space Station 14 Wiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

19 May 2025

18 February 2024

  • curprev 11:2311:23, 18 February 2024 support-wikigg>RheingoldRiver 9,035 bytes +9,035 Created page with "local lang = mw.getLanguage('en') local p = {} function p.generalLength(tbl) local n = 0 for _, _ in pairs(tbl) do n = n + 1 end return n end function p.getKeys(tbl, f) local ret = {} for k, _ in pairs(tbl) do ret[#ret+1] = k end if f then table.sort(ret, f) end return ret end function p.keyOf(tbl, val) for k, v in pairs(tbl) do if v == val then return k end end return nil end function p.hash(tbl) if not tbl then return {} end local hash = {..."