Module:Table: Revision history

From TwogPedia

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 August 2022

  • curprev 21:2521:25, 19 August 2022Couchor talk contribs 10,367 bytes +10,367 Created page with "local Table = {} function Table.randomize(tbl) math.randomseed(os.time()) for i = #tbl, 2, -1 do local j = math.random(i) tbl[i], tbl[j] = tbl[j], tbl[i] end return tbl end function Table.size(tbl) local i = 0 for _ in pairs(tbl) do i = i + 1 end return i end function Table.includes(tbl, value) for _, entry in ipairs(tbl) do if entry == value then return true end end return false end function Table.filter(tbl, predicate, argument) local filt..."