Permutation: Reverse...

Reverse the elements in the given range.

Setting

Index range
defines the range of indices that will be reversed.

Examples

1. With Index range = [0,0], the permutation (1,2,3,4,5) is turned into (5,4,3,2,1).

2. With Index range = [3,0], the permutation (1,2,3,4,5) is turned into (1,2,5,4,3).

Links to this page


© djmw, January 5, 2011