跳到主要内容

math.sum

求数组中的元素和(推荐用array.sum)

声明

mixed math.sum(array arr)

参数

参数名描述
arr数组

返回值

数组中的元素和

使用方式

返回文档