Wednesday, 18 September 2013

Haskell: removing specific duplicates that are next to each other from a string

Haskell: removing specific duplicates that are next to each other from a
string

I would like to know how to remove specific duplicates from a string. An
example would be:
"|Hello|| My|| Name|| Is|| XYZ|"
Should become:
"|Hello| My| Name| Is| XYZ|"
Thanks

No comments:

Post a Comment