3 ms·
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)) end Of course, if r is
by FacelessJim 18d ago
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))
end
Of course, if r is ever something different than a simple operator, slap yourself. But otherwise it’s an absurdly powerful construct.