I have an array and I need to be able to detect when a varying number of consecutive array elements are equal. I want to be able to call the code and give the number of elements I need to find.
The following does not work but I hope will illustrate what I am looking for.
I have been looking at ways of recording the number of equalities in the p loop, but I am sure there is a more elegant way.Please Login or Register to view this content.
John
Bookmarks