Module:TableUtil: Revision history

Jump to navigation Jump to search

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.

15 July 2024

  • curprev 20:4820:48, 15 July 2024RheingoldRiver talk contribs 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 = {..."