Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

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