Method Array.rreduce()
- Method
rreduce
mixedrreduce(function(:void)fun,arrayarr,mixed|voidzero)- Description
rreduce() sends the last two elements in
arrtofun, then the third last element inarrand the result tofunand so on. Then it returns the result. The function will returnzeroifarris the empty array. Ifarrhas only one element, that element will be returned.- See also