Great thanks Adri. Sorry for my typo for "L:=".
I have one further question. Here's the test code:
L := [2, 1]
test := proc (i) local a1; a1 := 1; add(a || b*L[i], b = 1 ..
2) end proc
test(1);
will result
2 a1 + 2 a2
without evaluating `a1` which is a local variable defined in function
test.
I expect to get `2*1+2*a2`.
On Feb 8, 7:22 am, "A. van der Meer"