79 553
contributi
m (Added groupBy) |
(Correction for unpack/table.unpack *** sovrascritto il testo esistente ***) |
||
end
--[[
Since lua5.2 unpack has been moved to table.unpack, this allows migration with
older versions on PCW.
--]]
table.unpack = table.unpack or unpack
--[[
Merges two tables into a new one. Integer indices of the second table will
follow the ones of the first. Other indices overwrite the ones of the first
in case of
in this case they are merged recursively.
local valueKeys = {table.deepSearch(v, value)}
if valueKeys[#valueKeys] then
return k, table.unpack(valueKeys)
end
end
local groups = {}
for
local groupID = getGroup(v)
if not groups[groupID] then
|