wrap($arrays->arrayOf($plugins->loadClass("java.lang.Long"), 1, 2, 3, 4, 5)); // 计算累积索引加权乘积,累积索引加权乘积: [1, 4, 36, 576, 14400] $numbers->runningReduceIndexed(function ($index, $acc, $element) { return $acc * $element * ($index + 1); })->forEach(function ($it) use ($console) { $console->log($it); });