Have they heard of our lord and saviour “mapreduce”?
x = mapreduce(f, r, arr, init)
equivalent to
x=init
for e in arr
r(x, f(e))
endOf course, if r is ever something different than a simple operator, slap yourself. But otherwise it’s an absurdly powerful construct.