Re: delayed rule evaluation order
- To: mathgroup at smc.vnet.net
- Subject: [mg67992] Re: [mg67967] delayed rule evaluation order
- From: Andrzej Kozlowski <akoz at mimuw.edu.pl>
- Date: Thu, 20 Jul 2006 06:04:35 -0400 (EDT)
- References: <200607190921.FAA21363@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
On 19 Jul 2006, at 11:21, Chris Chiasson wrote: > Hold[{2, 3}] /. {{x_, y_} :> x^y} > > the result is Hold[Power[2,3]] > > I would like the result to be Hold[8] > > The original context is post-processing of a large Trace output (via > SetPrecision to get rid of digits and improve readability). > > Any ideas? > > -- > http://chris.chiasson.name/ > There are a number of ways to do this for this particular case (including some very obvious ones which I will ignore) but some of them may not work in the situation you seem to have in mind. It would be helpful to see a little more of your Trace output, but anyway, it seems to me that the following should work: Hold[{2, 3}] /. {Hold[{x_, y_}] :> Hold@@{x^y}} Hold[8] Andrzej Kozlowski
- References:
- delayed rule evaluation order
- From: "Chris Chiasson" <chris@chiasson.name>
- delayed rule evaluation order