MathGroup Archive 2008

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

Search the Archive

Re: Re: easier method for Flatten[Position[list2,x_x...??

  • To: mathgroup at smc.vnet.net
  • Subject: [mg94068] Re: [mg94023] Re: easier method for Flatten[Position[list2,x_x...??
  • From: Lou Talman <talmanl at mscd.edu>
  • Date: Thu, 4 Dec 2008 07:13:45 -0500 (EST)
  • References: <gh0jlg$5mu$1@smc.vnet.net> <200812020542.AAA19156@smc.vnet.net>

On Dec 1, 2008, at 10:42 PM, Jens-Peer Kuska wrote:

> list1 = {a, b, b, e};
> list2 = {{a, aP}, {b, bP}, {c, cP}, {d, dP}, {e, eP}, {f, fP}};
>
> list1 /. Rule @@@ Select[list2, MemberQ[list1, First[#]] &]

Is there an easier way than looking up every Mathematica instruction  
that might be relevant for finding out what instruction shorthand  
like "@@@" represents?  The obvious "?@@@" fails. (I finally found  
that it's a special case of Map, but only after checking all of the  
other things listed by "?Map*" because Map itself seemed least likely.)


--Lou Talman
  Department of Mathematical & Computer Sciences
  Metropolitan State College of Denver

  <http://clem.mscd.edu/%7Etalmanl>




  • Prev by Date: Plotting Vector Fields in Mathematica 7
  • Next by Date: Re: ListPlot and Tooltip
  • Previous by thread: Re: easier method for Flatten[Position[list2,x_x...??
  • Next by thread: Re: easier method for Flatten[Position[list2,x_x...??