Method Array.rreduce()


Method rreduce

mixed rreduce(function(:void) fun, array arr, mixed|void zero)

Description

rreduce() sends the last two elements in arr to fun, then the third last element in arr and the result to fun and so on. Then it returns the result. The function will return zero if arr is the empty array. If arr has only one element, that element will be returned.

See also

reduce()