==== ΔLIST ==== ---- Return first differences of elements of a list ---- ^ __Input Stack__ ^ ^ __Output Stack__ ^ | **Ldata** | **→** | **Ldiff** | | //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 ''ΔLIST'' command returns the first differences of the elements in the list **Ldata**, i.e.: $$ data_2-data_1 \\ data_3-data_2 \\ data_4-data_3 \\ \ldots $$ The list must contain at least two elements, and the elements themselves must be suitable for mutual subtraction. ---- ''ΔLIST'' is fully equivalent to its **userRPL** counterpart. ---- **__Input__** 4: 3: 2: 1: { 39 18 5 '2*X' 73 } ………………………………………………………………………………………………………… ΔLIST \\ **__Output__** 4: 3: 2: 1: { -21 -13 '2*X-5' '73-2*X' } ………………………………………………………………………………………………………… ---- {{page>manual:chapter6:lists&nofooter&noeditbtn&inline}}