Question on using Table in module
- To: mathgroup at smc.vnet.net
- Subject: [mg67894] Question on using Table in module
- From: "Nag" <Naga1010 at gmail.com>
- Date: Wed, 12 Jul 2006 05:05:22 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Hello:
Look at the following code fragment.
a = {1, 0}
b[x_,n_,d_]:=Module[{i},x[[n]]=d];
b[a,2,40]
?a
a = {1, 0}
Executing gives the error message:
Set::setps: {1, 0} in assignment of part is not a symbol.
I followed the link to the Help browser, but do not understand the
explanation.
What is happening here? Please help.
Best
Nag
- Follow-Ups:
- Re: Question on using Table in module
- From: Sseziwa Mukasa <mukasa@jeol.com>
- Re: Question on using Table in module