List Commands Library for 50g

04022018, 08:51 AM
Post: #320




RE: List Commands Library for 50g
Now I am not sure I proposed the following commands already, anyway better propose something twice than none sometimes.
Finding the min and maximum of a list. LMAX and LMIN. It would suprise me if no one asked for this before. Where LMAX is the equivalent of: inputList LSORT 1 LLAST @LSORT from werner and LMIN is inputList LSORT HEAD @LSORT from werner Aside from 1 command to type instead of 3 (my motto), although those above will go in the collection of user RPL snippets (if you have better ideas, please share); I strongly believe that David can save the sort complexity and also LFRST/LLAST/HEAD operations. As to find the minimum/maximum one has to go through the list keeping a reference. Additionally one can also do LMIN / LMAX returning the value and all the positions that have that value. Therefore inputList DUP LSORT 1 LLAST SWAP OVER MPOS and inputList LSORT HEAD SWAP OVER MPOS Wikis are great, Contribute :) 

« Next Oldest  Next Newest »

User(s) browsing this thread: 1 Guest(s)