Question: Reduce number of arguments of a given function

I have a function with two arguments and want -- as the first argument gets fixed -- to transform it to a function with just one argument. The difficulty is that I use for the function definition the same symbols as in the worksheet where those symbols are assigned to numerical values. The main problem is, as the following minimal example shows, that the variable A is not evaluated during the definition of function g(). > a:=1: > b:=2: > f:=(a,b)->a+b; (a, b) -> a + b > A:=3.5: > g:=b->f(A,b); b -> f(A, b) > g(0); 3.5 # O.K. > A:=4: 4 > g(0); 4 # not indendend, should still yield 3.5
Please Wait...