Re: Question on using Table in module
- To: mathgroup at smc.vnet.net
- Subject: [mg67917] Re: Question on using Table in module
- From: "Nag" <Naga1010 at gmail.com>
- Date: Thu, 13 Jul 2006 06:53:01 -0400 (EDT)
- References: <e92e9m$lqi$1@smc.vnet.net><e92g18$mcu$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Thanks Daniel. That works. Problem is the array is not the first argument in the actual function and there seems to be no way to specify an arbitrary argument. Too messy to change the position of the argument now. Searched some more and thought of using Hold as below. But not sure when and how to use ReleaseHold? Can you help? Best Nag a = {1, 0} b[Hold[x_],n_,d_]:=Module[{i}, x[[n]] = d ]; b[a,2,40] ?a