• Flatten[list] flattens out nested lists.
• Flatten[list, n] flattens to level n.
• Flatten[list, n, h] flattens subexpressions with head h.
• 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.
flattens out levels in SparseArray
objects just as in the corresponding ordinary arrays.
• New in Version 1.