Rearranging Nested Lists

You will encounter nested lists if you use matrices or generate multidimensional arrays and tables. The Wolfram Language provides many functions for handling such lists.

A few functions for rearranging nested lists.

This "flattens out" sublists. You can think of it as effectively just removing all inner braces:

Flatten[{{a},{b,{c}},{d}}]

This flattens out only one level of sublists:

Flatten[{{a},{b,{c}},{d}},1]

There are many other operations you can perform on nested lists. More operations are discussed in "Manipulating Lists".