import console; var array = {23,324,34}; table.sum = function(arr,i = 1){ if i > #arr return 0; return arr[i] + owner.sum(arr,i+1); } console.dump(table.sum(array)); console.pause(true);
不错的例子