MathGroup Archive 2002

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Apply and Heads option

  • To: mathgroup at smc.vnet.net
  • Subject: [mg35220] Re: [mg35213] Apply and Heads option
  • From: Andrzej Kozlowski <andrzej at tuins.ac.jp>
  • Date: Wed, 3 Jul 2002 05:13:16 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

I think only your second request can be satisfied, since this option is 
specifically concerned with the way level specifications are 
interpreted, and in the case of the default level specification (0) it 
makes no difference. Here is on of countless examples where it does:

In[57]:=
Apply[f,k[g][a,b],{1,1}]

Out[57]=
k[g][a,b]

In[58]:=
Apply[f,k[g][a,b],{1,1},Heads->True]

Out[58]=
f[g][a,b]


On Tuesday, July 2, 2002, at 03:12  PM, Ersek, Ted R wrote:

> Hello mathgroup,
> ---------
>
> Apply has the Heads option.
> Can somebody give an example where
> Apply[f, expr, Heads->True]   gives a different result than
> Apply[f, expr, Heads->False].
>
> OR where
>
> Apply[f, expr, levelspec, Heads->True]   gives a different result than
> Apply[f, expr, levelspec, Heads->False].
>
> ----------
> Thanks,
>    Ted Ersek
>
>
>
>



  • Prev by Date: Re: Apply and Heads option
  • Next by Date: RE: Apply and Heads option
  • Previous by thread: Re: Apply and Heads option
  • Next by thread: RE: Apply and Heads option