local numbers = _objectWrappers:wrap(_arrays:arrayOf(_plugins:loadClass("java.lang.Integer"), 1, 2, 3, 4, 5)) -- 计算累积乘积,累积乘积: [1, 2, 6, 24, 120] numbers:runningReduce(function(acc, element) return acc * element end) :forEach(function(it) _console:log(it) end)