Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #9550

Re: Intersection problem

From Jason Ebaugh <ebaughjason@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Intersection problem
Date 2012-04-11 22:18 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jm4vvs$2kt$1@smc.vnet.net> (permalink)
References <jm0ju7$adk$1@smc.vnet.net>

Show all headers | View raw


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@jasonebaugh.info
Blog: www.jasonebaugh.info/wordpress/
LinkedIn: www.linkedin.com/in/jasonebaugh

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Intersection problem Cisco Lane <travlorf@yahoo.com> - 2012-04-10 06:28 +0000
  Re: Intersection problem Jason Ebaugh <ebaughjason@gmail.com> - 2012-04-11 22:18 +0000
  Re: Intersection problem Murta <rodrigomurtax@gmail.com> - 2012-04-11 22:19 +0000
  Re: Intersection problem Yi Wang <tririverwangyi@gmail.com> - 2012-04-11 22:21 +0000

csiph-web