does anyone have any idea what to do in order to find the number of sequences in an array?
for example, my array is:
var numbers:Array = new Array(banana, banana, apple, banana, banana);
and i need to find is: * how many times there is a sequence of "banana" * and the length of each sequence.
what shell i do in order to get the following result: 2,1,2 (2 bananas, 1 apple, 2 bananas)
i tried with do while loop, but i i guess i miss something.
a short example will be very appreciated!
thanx
bananaandapple? they clearly are not strings.