by FacelessJim · 2mo ago · 0 comments
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.
No comments yet.