Flatten
(Built-in Mathematica Symbol) Flatten[list] flattens out nested lists. Flatten[list, n] flattens to level n. Flatten[list, n, h] flattens subexpressions with head h. Flatten[list, {{s_11, s_12, ...}, ...
ArrayFlatten[{{m_11, m_12, ...}, {m_21, m_22, ...}, ...}] creates a single flattened matrix from a matrix of matrices m i j. ArrayFlatten[a, r] flattens out r pairs of levels ...
FlattenAt[list, n] flattens out a sublist that appears as the n\[Null] th element of list. If n is negative, the position is counted from the end. FlattenAt[expr, {i, j, ...
You will encounter nested lists if you use matrices or generate multidimensional arrays and tables. Mathematica provides many functions for handling such lists. A few ...
ImageAssemble[{{image_11, image_12, ...}, {image_21, ...}, ...}] assembles a single image from an array of images.
Nested lists are lists within a list; they are the principal structure for data in Mathematica and allow for high-dimension arrays and ragged datasets as well as common uses ...
FullGraphics[g] takes a graphics object, and generates a new one in which objects specified by graphics options are given as explicit lists of graphics primitives.
Particularly when you write procedural programs in Mathematica, you will often need to modify the value of a particular variable repeatedly. You can always do this by ...
Ways to construct nested lists. This generates a table corresponding to a 2×3 nested list. This generates an array corresponding to the same nested list.
Mathematica contains some powerful primitives for making structural changes to expressions. You can use these primitives both to implement mathematical properties such as ...