Wolfram ResearchProductsPurchasingServices & ResourcesAbout UsOur Sites
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

Documentation / Mathematica / 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 Flatten flattens out levels in SparseArray objects just as in the corresponding ordinary arrays.

FilledSmallSquare See Section 1.8.12 and Section 2.2.10.

FilledSmallSquare See also: Partition, FlattenAt.

FilledSmallSquare New in Version 1.

Further Examples



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information


 © 2008 Wolfram Research, Inc.  Terms of Use  Privacy Policy | [ja] |
Sign up for our newsletter: