local numbers = _objectWrappers:wrap(_arrays:arrayOf(_plugins:loadClass("java.lang.Integer"), 1, 2, 3, 4, 5)) -- 计算累积索引加权乘积,累积索引加权乘积: [1, 4, 36, 576, 14400] numbers:runningReduceIndexed(function(index, acc, element) return acc * element * (index + 1) end) :forEach(function(it) _console:log(it) end)