New in 6.0: List Manipulation

Widely recognized as the world's most powerful list manipulation language, Mathematica added in Version 6.0 a number of important new functions. Each function was carefully designed for flexibility, ease of use, wide application and tight integration into the Mathematica system.

ReferenceReference

New Part Specification Functions

Span (;;) short notation for sequences of parts, blocks, etc.

Band arbitrary bands in multidimensional arrays

New Functions for List & Array Creation

ConstantArray create a constant array

RandomInteger, RandomChoice, ... create lists or arrays of random elements

New Functions for Processing Lists

Tally tally identical elements with their multiplicities

BinCounts, BinLists give counts and lists of elements that lie in bins

Accumulate, Differences successive sums and differences in lists

Commonest find the commonest elements in a list

New Functions for Rearranging & Modifying Lists

SortBy sort a list by values of a function

Riffle interleave elements into a list

ReplacePart (modified) now supports general sparse rule specification

RandomSample randomly rearrange a list

Permutations (modified) now supports selecting any number of elements

New Functions for Multidimensional Arrays

ArrayFlatten flatten subarrays in any dimension

Flatten (modified) new forms of multilevel flattening

Join (modified) join arrays at any level

PadLeft, PadRight (modified) extended to automatically form full arrays

Reverse (modified) extended to arbitrary levels

Diagonal extract the diagonal elements in a matrix

New List-Oriented Functional Programming

LengthWhile  ▪  TakeWhile