local function print_array(a) for _, v in pairs(a) do print(v) end end print_array({ 1, 2, 3 }) print_array({ "a", 2, "hello", 99 })