MathGroup Archive 2012

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

Search the Archive

Re: Intersection problem


In[31]:= 
firstlist={{a,x},{b,y},{c,z}};
secondlist={b,c,d};

Cases[firstlist, xx_ /; MemberQ[secondlist,xx[[1]]]]

Out[33]= {{b,y},{c,z}}


Jason Ebaugh

Contact: jasonebaugh at jasonebaugh.info
Blog: www.jasonebaugh.info/wordpress/
LinkedIn: www.linkedin.com/in/jasonebaugh




  • Prev by Date: Frameless Window in Manipulate
  • Next by Date: Re: Intersection problem
  • Previous by thread: Re: Intersection problem
  • Next by thread: Re: Intersection problem