Re: ReplaceAll question

*To*: mathgroup at smc.vnet.net*Subject*: [mg82528] Re: [mg82513] ReplaceAll question*From*: Andrzej Kozlowski <akoz at mimuw.edu.pl>*Date*: Wed, 24 Oct 2007 04:19:36 -0400 (EDT)*References*: <200710230929.FAA29043@smc.vnet.net>

On 23 Oct 2007, at 18:29, Yaroslav Bulatov wrote: > b = 3; > Hold[a[[b]]] /. {b -> c} > > ReplaceAll has no effect, why? What is the recommended way of carrying > out the replacement above? > > b = 3; Hold[a[[b]]] /. {HoldPattern[b] -> c} Hold[a[[c]]] Andrzej Kozlowski

**References**:**ReplaceAll question***From:*Yaroslav Bulatov <yaroslavvb@gmail.com>