Remove the second and succeeding adjacent duplicates.
So that [a,a,a,b,b,c] should become [a,b,c].
Can someone please help me. I have an assignment due and i just don't have a clue. I'm trying to start by checking if the first element is a member of the rest of the tail of the list. But i'm...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.