|
Flatten
Flatten[list] flattens out nested lists.
Flatten[list, n] flattens to level n.
Flatten[list, n, h] flattens subexpressions with head h.
Example: Flatten[ a, b,c , d ]  .
Flatten "unravels" lists, effectively just deleting inner braces.
Flatten[list, n] effectively flattens the top level in list n times.
Flatten[f[e, ... ]] flattens out subexpressions with head f.
See The Mathematica Book: Section 1.8.14 and Section 2.2.10.
See also: Partition, FlattenAt.
Further Examples
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT. SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION. | |