Hi Walter,
>The trick thus is to copy the array into itself where the destination element is equal to the source shifted by the length of the repeating values.
Cool! I never thought about copying the array into itself. Well, I probably won't use it often, because it's really less readable, but if performance should be an issue, I'll remember.
Christof
--
Christof