Using Haskell, I need:
— | Produce a list where sequences of repeated elements in the given list are replaced by just one of the repeated element.
Where the result of the following compress statement
Save your time - order a paper!
Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlinesOrder Paper Now
>>> compress [1,1,1,2,3,3,3,1,2,2,2,2]