local numbers = _objectWrappers:wrap(_arrays:arrayOf(_plugins:loadClass("java.lang.Integer"), 1, 2, 3, 4, 5)) -- 计算累积和, 累积和: [0, 1, 3, 6, 10, 15] numbers:runningFold(0, function(acc, element) return acc + element end) :forEach(function(it) _console:log(it) end)