function module.ShallowTableCopy(Y)local b={}for Y,e in pairs(Y)do b[Y]=e end return b end function module.ArrayCopyOnCondition(Y,b)local e={}for Y,s in pairs(Y)do if b(s)then table.insert(e,s)end end return e end module.ShallowCopy=module.ShallowTableCopy

function module.ShallowTableCopy(t)
	local s = {};
	for i, v in pairs(t) do
		s[i] = v;
	end
	return s;
end

function module.ArrayCopyOnCondition(t, c)
	local s = {};
	for i, v in pairs(t) do
		if c(v) then
			table.insert(s, v);
		end
	end
	return s;
end

module.ShallowCopy = module.ShallowTableCopy;
