Re: ReplaceAll evaluation
- To: mathgroup at smc.vnet.net
- Subject: [mg104439] Re: [mg104391] ReplaceAll evaluation
- From: Leonid Shifrin <lshifr at gmail.com>
- Date: Sat, 31 Oct 2009 01:54:57 -0500 (EST)
- References: <200910300718.CAA27697@smc.vnet.net>
Hi Rui, I would make my own function with a HoldFirst attribute. ClearAll[replaceAllUnevaluated]; SetAttributes[replaceAllUnevaluated, HoldFirst]; replaceAllUnevaluated[expr_, rules_] := Unevaluated[expr] /. rules; Regards, Leonid On Fri, Oct 30, 2009 at 10:18 AM, Rui <rui.rojo at gmail.com> wrote: > I found myself writing Unevaluate[blabla..balbal] /. Rules way too > often. Most of the times I don't want the /. to evaluate it before > replacing. > Is there any nice way to do it? > Or I should set the attribute HoldFirst, or type that all the time, or > create my own function? > Thanks > Rui Rojo > >
- References:
- ReplaceAll evaluation
- From: Rui <rui.rojo@gmail.com>
- ReplaceAll evaluation