Re: [Haskell-cafe] Suspected stupid Haskell Question

2007-10-17 Thread Big_Ham
you are indeed right Peter, that's what I was after, the frequency regardless of elements. It also doesn't matter if it outputs them as tuples, or as a separate list on their own because each value would belong to the first occurance of that element if you seem what I mean, so you could still te

[Haskell-cafe] Suspected stupid Haskell Question

2007-10-17 Thread Big_Ham
Is there a library function to take a list of Strings and return a list of ints showing how many times each String occurs in the list. So for example: ["egg", "egg", "cheese"] would return [2,1] I couldn't find anything on a search, or anything in the librarys. Thanks BH. -- View this message