Show pageDiscussionOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ==== REVLIST ==== <callout type="primary" color="" icon="fa fa-book" title="Synopsis"> ---- Reverse the order of elements in a list </callout> <callout color="green" icon="fa fa-indent" title="Stack Diagram"> ---- ^ __Input Stack__ ^ ^ __Output Stack__ ^ | **L** | **→** | **L<sub>reversed</sub>** | | //Level 1// | //→// | //Level 1// | {{page>manual:chapter6:aux:legend&nofooter&noeditbtn&inline}} | **Keyword type** | [[manual:chapter5:basics#commands|Command]] || | **Parallel list processing capabilities** | [[manual:chapter5:listproc#group-2commands-that-must-use-dolist-to-parallel-process|Group 2]] | //Commands that must use //''[[manual:chapter6:lists:cmd_cmddolist|DOLIST]]''// to parallel process// | | **Affected by flags** | //None// || </callout> <callout color="orangered" icon="fa fa-comment" title="Description"> ---- The ''REVLIST'' command reverses the order of elements in a list. In addition with the ''[[manual:chapter6:lists:cmd_sort|SORT]]'' command it can be used to sort a list in descending order. </callout> <callout type="success" icon="true" title="Compatibility"> ---- ''REVLIST'' is fully equivalent to its **userRPL** counterpart. </callout> <callout type="info" icon="true" title="Usage"> ---- **__Input__** <code> 4: 3: 2: 1: { 5 1 4 3.1415 } ………………………………………………………………………………………………………… REVLIST </code> \\ **__Output__** <code> 4: 3: 2: 1: { 3.1415 4 1 5 } ………………………………………………………………………………………………………… </code> </callout> <callout color="darkgray" icon="fa fa-hand-o-right" title="Related Commands"> ---- {{page>manual:chapter6:lists&nofooter&noeditbtn&inline}} </callout> manual/chapter6/lists/cmd_revlist.txt Last modified: 2021/10/03 14:54by jojo1973