I just wonder if the LUA used by factorio supports function with undefined number of arguments like in this référence (réf : https://www.lua.org/pil/5.2.html)
Code: Select all
printResult = ""
function print (...)
for i,v in ipairs(arg) do
printResult = printResult .. tostring(v) .. "\t"
end
printResult = printResult .. "\n"
end