This question already has an answer here:
Suppose I define
I wish to apply the Fold function to f along the lines of
In other words, I want to fix x and y, while iterating over z. But this makes no sense as Fold will not accept more than 3 arguments. I realise that one solution to this is to redefine f as
Or something else along these lines, but I want to keep f as a function of 3 variables explicitly. Any suggestions?