Wolfram ResearchProductsPurchasingServices & ResourcesAbout UsOur Sites
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

Documentation / Mathematica / Built-in Functions / New in Version 3.x / Lists and Matrices /

Split

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

FilledSmallSquare Split[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.

FilledSmallSquare Split can be used to perform run-length encoding.

FilledSmallSquare See Section 1.8.10 and Section 2.4.4.

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

FilledSmallSquare New in Version 3.

Further Examples



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information


 © 2008 Wolfram Research, Inc.  Terms of Use  Privacy Policy | [ja] |
Sign up for our newsletter: