I am trying to iteratively generate some functions using For Loop:
However, it does not work, as I had hoped, since the value of I is not evaluated inside each function. I want to try to define a function equal to x * 1; x * 2; etc., but in the end I get the function x * i; where i am 21.
I tried to use the eval () function, and this just led to saving x * eval (i).
source share