Flatten• Flatten[list] flattens out nested lists. • Example: Flatten[{a, {b, c}, {d}}] . • Flatten "unravels" matrices, effectively just deleting inner braces. • See also: Partition.
Examples Using InstantCalculatorsHere are the InstantCalculators for the Flatten function. Enter the parameters for your calculation and click Calculate to see the result.
Out[1]= |  |
Out[2]= |  |
Entering Commands DirectlyYou can paste a template for this command via the Text Input button on the Flatten Function Controller. This flattens out all sublists.
Out[3]= |  |
|