[Haskell-cafe] Suspected stupid Haskell Question

Big_Ham joymachine2001 at hotmail.com
Wed Oct 17 06:06:21 EDT 2007


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 in context: http://www.nabble.com/Suspected-stupid-Haskell-Question-tf4639170.html#a13250044
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.



More information about the Haskell-Cafe mailing list