Mathematica 9 is now available

PartitionSplit

Flatten

FilledSmallSquareFlatten[list] flattens out nested lists.

FilledSmallSquareFlatten[list, n] flattens to level n.

FilledSmallSquareFlatten[list, n, h] flattens subexpressions with head h.

FilledSmallSquare Example: Flatten[a,b,c,d] LongRightArrow.

FilledSmallSquareFlatten "unravels" lists, effectively just deleting inner braces.

FilledSmallSquareFlatten[list, n] effectively flattens the top level in list n times.

FilledSmallSquareFlatten[f[e, ... ]] flattens out subexpressions with head f.

FilledSmallSquare See The Mathematica Book: Section 1.8.14 and Section 2.2.10.

FilledSmallSquare See also: Partition, FlattenAt.

Further Examples

PartitionSplit



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.