Question: Split the list into sublists with identical elements

ca:= [a, b, a, a, b, b, b, a, a, a, c, a, c, c, a, a];

I started using Maple for a short time and do not know all the functions and commands. How to split the above list as follows:

[[a], [b], [a, a], [b, b, b], [a, a, a], [c], [a], [c, c], [a, a]]

Thank you for help.


Please Wait...