Skip to main content

SplitBy

SplitBy[list,f] splits list into sublists consisting of runs of successive elements that give the same value when f is applied.

SplitBy[list,{f1,f2,…}] recursively splits list into sublists by testing elements successively with each of the fi.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.