Re: extracting common items from a list
- To: mathgroup at smc.vnet.net
- Subject: [mg25456] Re: [mg25427] extracting common items from a list
- From: BobHanlon at aol.com
- Date: Sun, 1 Oct 2000 02:44:39 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
In a message dated 9/29/2000 1:34:42 AM, ravanrip at yahoo.com writes:
>Hi, How would i go about selecting common things from 2 different
>lists?
>
>If i have V = {v$234Period <= 10, v$235Period > v$234Period,
>v$234Period >=5}
>
>and W = {v$234Period}
>
>I would get a new list X = {v$234Period <= 10, v$234Period >=5}
>
>Notice that im only interested in inequalities whose left hand side
>contains one of the elements in W.
>
Select[V, MemberQ[W, #[[1]]] &]
Bob Hanlon