MathGroup Archive 2006

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

Search the Archive

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


  • Prev by Date: java program sending computations to Remote kernel
  • Next by Date: Clustering as constraint solving
  • Previous by thread: java program sending computations to Remote kernel
  • Next by thread: Re: Filtering same elements from two lists