Mathematica encapsulates in a small number of functions vast flexibility in rearranging lists with any structure and any number of elements.
A possible way of working with permutations is by relating them to the reorderings of the elements of a list. This is the standard point of view in the combinatorial approach ...
List
(Built-in Mathematica Symbol) {e_1, e_2, ...} is a list of elements.
MapAt
(Built-in Mathematica Symbol) MapAt[f, expr, n] applies f to the element at position n in expr. If n is negative, the position is counted from the end. MapAt[f, expr, {i, j, ...}] applies f to the part of ...
Mathematica transparently works with complex variables throughout, not only numerically, but also symbolically—often relying on original results to handle intricate branch ...
Functions for rearranging lists. This sorts the elements of a list into a standard order. In simple cases like this, the order is alphabetical or numerical. This sorts the ...
Partitioning elements in a list. This partitions in blocks of 3. This partitions in blocks of 3 with offset 1.
Throughout Mathematica there is support not only for approximate real numbers, but also for exact numbers represented in algebraic or symbolic form. Functions like Floor, ...
You can use most of the list operations discussed in "Lists" on any kind of Mathematica expression. By using these operations, you can manipulate the structure of expressions ...
You can use lists as tables of values. You can generate the tables, for example, by evaluating an expression for a sequence of different parameter values. This gives a table ...