I want to do the following in Mathematica
Table[p[i], {i, -3, 0}] = Flatten[{Table[0, {i, -3, -1}], 1}]
But I got an error:
Set::write: Tag Table in Table[p[i], {i, -3, 0}] is Protected.
However, it is perfectly fine to do:
{p[-3], p[-2], p[-1], p[0]} = Flatten[{Table[0, {i, -3, -1}], 1}]
Many thanks!
Force the LHS to evaluate into pieces that can be assigned to:
Evaluate[Table[p[i], {i, -3, 0}]] = Flatten[{Table[0, {i, -3, -1}], 1}]