|
[Date Index]
[Thread Index]
[Author Index]
Howto sum up a list?
- To: mathgroup at smc.vnet.net
- Subject: [mg106913] Howto sum up a list?
- From: Jonas Stein <news at jonasstein.de>
- Date: Thu, 28 Jan 2010 02:43:17 -0500 (EST)
How can i sum up the list:
MyList = {{eggs, 4}, {milk, 1}, {eggs, 1}, {milk, 1}}
I want to get something like:
{{eggs, 5},{milk, 2}}
I tyied Tally[], but that ignored the factor 4 in {eggs, 4}
Thank you.
--
Jonas Stein <news at jonasstein.de>
Prev by Date:
Re: looping
Next by Date:
A question about location of points on a circle
Previous by thread:
Re: mathematica doesn't find periodic response with laplace transform
Next by thread:
Re: Howto sum up a list?
|