Rearrange the contents of a tuple to be in the reverse traversal order. More...
Rearrange the contents of a tuple to be in the reverse traversal order.
Tuple | Type of tuple to rearrange. |
Travesal | Traversal ordering. |
For example, given the tuple (x, y, z) and the traversal <1, 2, 0>, output the tuple (y, z, x).