Split
Split[list]
splits list into sublists consisting of runs of identical elements.
Examples
open allclose allBasic Examples (1)
Generalizations & Extensions (5)
Applications (5)
Group together identical elements:
Only split when there is a change from negative to positive sign (rising edge):
Only split when there is a change from positive to negative sign (falling edge):
Group equivalence classes according to an equivalence function:
Distribution of lengths of runs of 0s or 1s in the first million bits of :
Distribution of lengths of runs of 0s or 1s in one million pseudorandom bits:
Neat Examples (2)
Find runs of numbers in base 10 that contain the same number of 1s:
Iterated run-length encoding [more info]:
Text
Wolfram Research (1996), Split, Wolfram Language function, https://reference.wolfram.com/language/ref/Split.html.
CMS
Wolfram Language. 1996. "Split." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Split.html.
APA
Wolfram Language. (1996). Split. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Split.html