==== REVLIST ==== ---- Reverse the order of elements in a list ---- ^ __Input Stack__ ^ ^ __Output Stack__ ^ | **L** | **→** | **Lreversed** | | //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// || ---- 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. ---- ''REVLIST'' is fully equivalent to its **userRPL** counterpart. ---- **__Input__** 4: 3: 2: 1: { 5 1 4 3.1415 } ………………………………………………………………………………………………………… REVLIST \\ **__Output__** 4: 3: 2: 1: { 3.1415 4 1 5 } ………………………………………………………………………………………………………… ---- {{page>manual:chapter6:lists&nofooter&noeditbtn&inline}}