So this method works for max and sum. What else? Is it any sort-of "associative function" - ie, f st. f(x, f(y,z)) = f(f(x,y), z)?
Are there other useful functions satisfying these conditions?
Are there other useful functions satisfying these conditions?