Split
Split[list] splits list into sublists consisting of runs of identical elements.
Split[list,test] treats pairs of adjacent elements as identical whenever applying the function test to them yields True.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.