So for demonstration, lets say I have a function f(x,y), where y is going to be fixed for all evaluations of f.
my_func = x -> f(x,y)
My question is I believe that when you evaluate my_func(x) it will rerun f(x,y) again and again for every x you evaluate it at. I don't want to have to reconstruct f every time I have a new x, because y is fixed. Is there any way that I can make one evaluation of f(x,y) happen for a fixed y and x is not determined yet, i.e make a g(x)= f(x,y) (because y is fixed)?
So then I can just have
my_func2 = x-> g(x)
so that I am just evaluating it for some given x.
Thank you.