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?
- Follow-Ups:
- Re: Intersection problem
- From: Barrie Stokes <Barrie.Stokes@newcastle.edu.au>
- Re: Intersection problem
- From: Christoph Lhotka <christoph.lhotka@fundp.ac.be>
- Re: Intersection problem
- From: Bob Hanlon <hanlonr357@gmail.com>
- Re: Intersection problem
- From: Adriano Pascoletti <adriano.pascoletti@uniud.it>
- Re: Intersection problem
- From: "Harvey P. Dale" <hpd1@nyu.edu>
- Re: Intersection problem
- From: Fred Simons <f.h.simons@tue.nl>
- Re: Intersection problem