Re: priorities between @, @@ and //
- To: mathgroup at smc.vnet.net
- Subject: [mg108750] Re: priorities between @, @@ and //
- From: Bill Rowe <readnews at sbcglobal.net>
- Date: Tue, 30 Mar 2010 05:01:13 -0500 (EST)
On 3/29/10 at 7:20 AM, guerom00 at gmail.com (guerom00) wrote:
>Just a quick question : what are the priority between all those
>operators ? I mean : - what is f@x//g ? Is it f[g[x]] or g[f[x]] -
>what is f@@{a,b}[[2]] ? Is it f[b] or (f[a,b])[[2]]
>You see what I mean... What are the rules for the priority of all
>those operators ?
The easy thing to do is simply execute an example. That is:
In[1]:= f@x // g
Out[1]= g[f[x]]
In[2]:= f @@ {a, b}[[2]] // Trace
Out[2]= {{{a,b}[[2]],b},f@@b,b}
Or look at the documentation. Specifically,
tutorial/OperatorInputForms