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.
Examples
open allclose all
Wolfram Research (2008), SplitBy, Wolfram Language function, https://reference.wolfram.com/language/ref/SplitBy.html.
Text
Wolfram Research (2008), SplitBy, Wolfram Language function, https://reference.wolfram.com/language/ref/SplitBy.html.
CMS
Wolfram Language. 2008. "SplitBy." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SplitBy.html.
APA
Wolfram Language. (2008). SplitBy. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SplitBy.html