Say I define the function:
X = 1;
SampleFunction = # + X &;
What should I do so that if later in the code I change the value of X, the value returned by SampleFunction is still based on the original X=1?
In other words, I want SampleFunction to return 11 even if X is changed to a different value.
Many many thanks!!!