| 1 | <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 | <title>Permutation: Reverse...</title> |
| 3 | <style> |
| 4 | td { padding-left: 5pt; padding-right: 5pt; } |
| 5 | th { padding-left: 5pt; padding-right: 5pt; } |
| 6 | code { white-space: pre-wrap; } |
| 7 | dd { white-space: pre-wrap; } |
| 8 | </style> |
| 9 | </head><body bgcolor="#FFFFFF"> |
| 10 | |
| 11 | <table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Palatino,Times" size=6 color="#999900"><b> |
| 12 | Permutation: Reverse... |
| 13 | </b></font></table></table> |
| 14 | <p>Reverse the elements in the given range.</p> |
| 15 | <h2>Setting</h2> |
| 16 | <dl> |
| 17 | <dt><b>Index range</b> |
| 18 | <dd>defines the range of indices that will be reversed.</dd> |
| 19 | </dl> |
| 20 | <h2>Examples</h2> |
| 21 | <p>1. With <b>Index range</b> = [0,0], the permutation (1,2,3,4,5) is turned into (5,4,3,2,1). </p> |
| 22 | <p>2. With <b>Index range</b> = [3,0], the permutation (1,2,3,4,5) is turned into (1,2,5,4,3). </p> |
| 23 | <h3>Links to this page</h3> |
| 24 | <ul> |
| 25 | <li><a href="Permutation.html">Permutation</a> |
| 26 | <li><a href="Strings__To_Permutation___.html">Strings: To Permutation...</a> |
| 27 | </ul> |
| 28 | <hr> |
| 29 | <address> |
| 30 | <p>© djmw 20110105</p> |
| 31 | </address> |
| 32 | </body> |
| 33 | </html> |