This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
 Rearranging & Restructuring Lists Mathematica encapsulates in a small number of functions vast flexibility in rearranging lists with any structure and any number of elements. Flatten — flatten out any sequence of levels in a nested list Partition — partition lists or nested lists into sublists Join — join lists together at any level      Sort — sort lexicographically, or with any comparison function SortBy — sort by the values of a function applied to elements Reverse — reverse a list, at any level RotateLeft, RotateRight — cyclically rotate lists at any depth      Transpose — transpose any collection of levels      PadLeft, PadRight — pad lists at any depth Riffle — intersperse additional elements      Split — split into runs of identical elements Union, Tally — enumerate, tally all distinct elements in a list           TUTORIALS Lists as Sets Rearranging Lists Rearranging Nested Lists Partitioning and Padding Lists Grouping and Combining Elements of Lists Ordering in Lists Combining Lists MORE ABOUT List Manipulation Elements of Lists Applying Functions to Lists Discrete Mathematics