Re: Monitor bug or feature
- To: mathgroup at smc.vnet.net
- Subject: [mg84133] Re: Monitor bug or feature
- From: Mark Fisher <particlefilter at gmail.com>
- Date: Tue, 11 Dec 2007 06:07:17 -0500 (EST)
- References: <fjj1nk$g5b$1@smc.vnet.net>
On Dec 10, 4:43 am, Mark Fisher <particlefil... at gmail.com> wrote:
> Hi all,
>
> Monitor[Table[Pause[.1]; i, {i, 10}], i]
>
> works as I expected, but
>
> Table[Pause[.1]; i, {i, 10}] // Monitor[#, i] &
>
> does not: It does not produce any "monitoring".
>
> Are there other examples where
>
> f[x, a]
>
> and
>
> f[#,a]&[x]
>
> produce different "effects". (Clearly the Heads of the expressions are
> different.)
>
> I'm guessing my surprise regarding this feature of Monitor reflects
> the fact that I really haven't made any attempt to understand Dynamic
> etc.
>
> --Mark
Yes, of course. How many times have I told others that if one gets an
unexpected result in Mathematica, odds are it's due to the order of
evaluation? When will I learn? Thanks all.
--Mark