Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

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

Search the Archive

Re: Intersection problem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg125979] Re: Intersection problem
  • From: Jason Ebaugh <ebaughjason at gmail.com>
  • Date: Wed, 11 Apr 2012 18:17:01 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <jm0ju7$adk$1@smc.vnet.net>

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