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


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

Intersection problem

From Cisco Lane <travlorf@yahoo.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Intersection problem
Date 2012-04-10 06:28 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jm0ju7$adk$1@smc.vnet.net> (permalink)

Show all headers | View raw


I need to select out the elements of the first list whose first elements are contained in the second list. For example

first list: {{a,x},{b,y},{c,z}}

second list: {b,c,d}

result: {{b,y},{c,z}}

Is there a quick way to do this? Intersection, maybe somehow?

Back to comp.soft-sys.math.mathematica | Previous | Next — 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