MathGroup Archive 2006

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

Search the Archive

Re: List Operations

  • To: mathgroup at smc.vnet.net
  • Subject: [mg65848] Re: List Operations
  • From: "LectorZ" <lectorz at mail.ru>
  • Date: Tue, 18 Apr 2006 06:56:44 -0400 (EDT)
  • References: <e1nn6s$lmm$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Thank you all for your help:
I took this one from Jean-Mark:

({#1[[1, 1]], Plus @@ #1[[2]]} &) /@ Transpose /@ Split[mylist /. {n_,
x_,
   y_} -> {n, x*y}, #1[[1]] == #2[[1]] &]

Regards,

LZ


  • Prev by Date: Need lower case in HTML save
  • Next by Date: Re: FindMinimum
  • Previous by thread: Re: List Operations
  • Next by thread: Re: List Operations