return function(arrays) o = {} for idx,arr in ipairs(arrays) do for i=1,#arr do table.insert(o, arr[i]) end end return o end