make a function that assign value to variable and is visible later



Zbigniew Komarnicki <cblasius <at> gmail.com> writes:


> If I make in this way, this didn't work 
> fun(var, j):= create_list( var[i+1] : x(l-i+2, p+j) , i, 0, 2);
>                                    ^^^ 

Try "::" instead of ":". 

"::" evaluates the left-hand side of the assignment.

best

Robert Dodier