This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
List Manipulation
Lists are central constructs in Mathematica, used to represent collections, arrays, sets and sequences of all kinds. Lists can have any structure and size, and can routinely involve even millions of elements. Well over a thousand built-in functions throughout Mathematica operate directly on lists, making lists a powerful vehicle for interoperability.
{a,b,...} (List) specify a list explicitly
Table make a table of values of an expression
Array make an array of any dimension from a function
Range  ▪ SparseArray  ▪ Tuples  ▪ NestList  ▪ Sow  ▪ Reap  ▪ ...
    
list[[...]] (Part) parts or sequences of parts (;;), resettable with =
First  ▪ Last  ▪ Take  ▪ Drop  ▪ Extract  ▪ Append  ▪ ReplacePart  ▪ ...
Select select according to a function
Cases give cases matching a pattern
Length  ▪ Position  ▪ MemberQ  ▪ ...
    
Flatten flatten out nested lists
Join  ▪ Partition  ▪ Transpose  ▪ Reverse  ▪ Sort  ▪ Split  ▪ Riffle  ▪ ...
    
Map (/@) — map a function over a list: f/@{a, b, c}{f[a], f[b], f[c]}
Apply (@@, @@@) — apply a function to a list: f@@{a, b, c}f[a, b, c]
MapIndexed  ▪ Scan  ▪ Thread  ▪ MapThread  ▪ Outer  ▪ FoldList  ▪ ...
    
{..}+{..}, etc. — automatically operate in parallel on list elements
Total  ▪ Differences  ▪ Tally  ▪ Count  ▪ BinCounts  ▪ ...
    
Column  ▪ Row  ▪ Grid  ▪ ListPlot  ▪ ArrayPlot  ▪ ...
    
Import  ▪ Export  ▪ "Table"  ▪ "Text"  ▪ "CSV"  ▪ ...
TUTORIALS
MORE ABOUT