Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

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

Search the Archive

Intersection problem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg125962] Intersection problem
  • From: Cisco Lane <travlorf at yahoo.com>
  • Date: Tue, 10 Apr 2012 02:27:28 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

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?



  • Prev by Date: Clear variable on Locator point change
  • Next by Date: Integrate problem
  • Previous by thread: Clear variable on Locator point change
  • Next by thread: Re: Intersection problem