FCReorderList
FCReorderList[li, ord]
reorders the list li
according to the given ordering ord
.
See also
Overview
Examples
myList = Table[mat[i], {i, 1, 23}]
{mat(1),mat(2),mat(3),mat(4),mat(5),mat(6),mat(7),mat(8),mat(9),mat(10),mat(11),mat(12),mat(13),mat(14),mat(15),mat(16),mat(17),mat(18),mat(19),mat(20),mat(21),mat(22),mat(23)}
FCReorderList[myList, {{1, 10}, 23, {11, 20}, 22, 21}]
{mat(1),mat(2),mat(3),mat(4),mat(5),mat(6),mat(7),mat(8),mat(9),mat(10),mat(23),mat(11),mat(12),mat(13),mat(14),mat(15),mat(16),mat(17),mat(18),mat(19),mat(20),mat(22),mat(21)}