If i have list is it possible to split it to sublists so that there is new list as long as items are repeating?
Something similar like:
INPUT:[a,a,a,b,b,a,a,b,b,b,b]
OUTPUT: [[a,a,a,],[b,b],[a,a],[b,b,b,b]]
Thank you!!
If i have list is it possible to split it to sublists so that there is new list as long as items are repeating?
Something similar like:
INPUT:[a,a,a,b,b,a,a,b,b,b,b]
OUTPUT: [[a,a,a,],[b,b],[a,a],[b,b,b,b]]
Thank you!!