MathGroup Archive 2012

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

Search the Archive

Intersection problem


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