Filtering same elements from two lists
- To: mathgroup at smc.vnet.net
- Subject: [mg67935] Filtering same elements from two lists
- From: "LectorZ" <lectorz at mail.ru>
- Date: Mon, 17 Jul 2006 06:51:51 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Dear experts,
I do have to not ordered lists of the following type (same shape and
length):
list1={{PLUS1, 55, 43}, {PLUS2, 555, 83}, {....},...}
list2={{..., ...,...}, {..., ...,...},{..., ...,...},{...,
...,...},{PLUS1,77, 99}, {..., ...,...},{PLUS2, 52,103}, {....}}
I have to filter the same records according to the 1st element of each
sublist and make a new list with the joint numbers from both lists.
The result in this case should be:
resultlist={{PLUS1, 55, 43, 77, 99}, {PLUS2, 555, 83, 52,103}, {....}}
Thanks,
LZ
- Follow-Ups:
- Re: Filtering same elements from two lists
- From: János <janos.lobb@yale.edu>
- Re: Filtering same elements from two lists