[Haskell-beginners] repetition

Luca Ciciriello luca_ciciriello at hotmail.com
Thu Aug 4 11:31:02 CEST 2011


Hi All.
Is there any function in Prelude that removes the repeated elements in a list? 

In example I've a list like this one: xs = ["3","3","3","3","3","4","4","4","4","4","5","5","5","5","5","6","6","6","6","6","6","6"]

I need a function f such that f xs = ["3","4","5","6"]

thanks in advance for any answer.

Luca


More information about the Beginners mailing list