Re[2]: [Haskell-cafe] Change value of a variable

2009-06-07 Thread Bulat Ziganshin
Hello ptrash, Sunday, June 7, 2009, 11:03:55 PM, you wrote: Hi, thanks for the answers. I want to make something like a counter. I have written a recursive method which for example runs x times and counts how many times it runs, and also count some other thinks. Add the end I want a

Re[2]: [Haskell-cafe] Change value of a variable

2009-06-07 Thread Bulat Ziganshin
Hello ptrash, Sunday, June 7, 2009, 11:44:18 PM, you wrote: I have a list of pupils (type Pupil = (Name, Grade)) where I store the name of the pupil and which grade he has. No I want to get the number (and average number) of each grade. Something like 10 Pupils have a A (23%), 2 Pupils have