Legacy Documentation

Mathematica® Teacher's Edition (2002)

This is documentation for an obsolete product.
Current products and services
 Documentation /  Mathematica Teacher's Edition /  Built-in Functions /  Lists and Matrices /  Structure Manipulation /

Flatten

FilledSmallSquare Flatten[list] flattens out nested lists.
FilledSmallSquare Flatten[list, n] flattens to level n.
FilledSmallSquare Flatten[list, n, h] flattens subexpressions with head h.

FilledSmallSquare Example: Flatten[a,b,c,d]LongRightArrow.
FilledSmallSquare Flatten "unravels" lists, effectively just deleting inner braces.
FilledSmallSquare Flatten[list, n] effectively flattens the top level in list n times.
FilledSmallSquare Flatten[f[e, ... ]] flattens out subexpressions with head f.
FilledSmallSquare See The Mathematica Book on the web: Section 1.8.14 and Section 2.2.10.
FilledSmallSquare See also: Partition.