Re: delayed rule evaluation order
- To: mathgroup at smc.vnet.net
- Subject: [mg68001] Re: [mg67967] delayed rule evaluation order
- From: "Christoph Lhotka" <lhotka at astro.univie.ac.at>
- Date: Thu, 20 Jul 2006 06:04:43 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Hello, try this:
In[]:= Hold[{2, 3}] /. Hold[{x_, y_}] :>f[x^y] /. f -> Hold
Out[]:=Hold[8]
wkr, christoph
On Wed, 19 Jul 2006 05:21:08 -0400 (EDT)
"Chris Chiasson" <chris at chiasson.name> 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/
>
-- Mag. Christoph Lhotka --
University of Vienna / Institute for Astronomy
fon. +43 (1) 4277 51841
mail. lhotka at astro.univie.ac.at