make a function that assign value to variable and is visible later
Subject: make a function that assign value to variable and is visible later
From: Robert Dodier
Date: Wed, 18 Jul 2012 18:09:56 +0000 (UTC)
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