[Haskell-beginners] Simple haskell problem ! Help please

Denis Firsov denis.firsov at gmail.com
Sat Nov 7 17:01:46 EST 2009

Hi ! I am beginner in Haskell and have problems with this problem:
compress :: Eq a => [a] -> [(a, Int)]
If you have string "AAABCCC" it transforms it to : {A, 3} {B,1} {C,3}

Could you help me with it ?
Thank you in advance !

More information about the Beginners mailing list