|
|
|||
|
|
|
| MATHEMATICA TUTORIAL | Related Tutorials »|Functions » |
| Flatten[list] | flatten out all levels in list |
| Flatten[list,n] | flatten out the top n levels in list |
| Partition[list,{n1,n2,...}] | partition into blocks of size |
| Transpose[list] | interchange the top two levels of lists |
| RotateLeft[list,{n1,n2,...}] | rotate successive levels by |
| PadLeft[list,{n1,n2,...}] | pad successive levels to be length |
A few functions for rearranging nested lists.
| In[1]:= |
| Out[1]= |
| In[2]:= |
| Out[2]= |