Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Rearranging & Restructuring Lists >

Split

Split[list]
splits list into sublists consisting of runs of identical elements.
Split[list, test]
treats pairs of adjacent elements as identical whenever applying the function test to them yields True.
  • The default function used to test whether elements are identical is SameQ.
  • Split can be used to perform run-length encoding.  »
New in 3
© 2013 Wolfram Research, Inc. Japanese
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team