This is documentation for Mathematica 4, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

$RandomStateExtract

Split

FilledSmallSquareSplit[list] splits list into sublists consisting of runs of identical elements.

FilledSmallSquareSplit[list, test] treats pairs of adjacent elements as identical whenever applying the function test to them yields True.

FilledSmallSquare Example: Split[a, a, b, b, a, a, b] LongRightArrow.

FilledSmallSquare The default function used to test whether elements are identical is SameQ.

FilledSmallSquareSplit can be used to perform run-length encoding.

FilledSmallSquare See The Mathematica Book: Section 1.8.10.

FilledSmallSquare See also: Partition, Union, Flatten, ReplaceList.

Further Examples

$RandomStateExtract