Module:TableTools: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(add getIntersection function)
(add missing ret table)
Line 68: Line 68:
function p.getIntersection(...)
function p.getIntersection(...)
local tables = {...}
local tables = {...}
local vals, ret = {}
local vals, ret = {}, {}
local lim = #tables
local lim = #tables
for _, t in ipairs(tables) do
for _, t in ipairs(tables) do