List Commands Library for 50g
|
08-24-2017, 10:25 PM
(This post was last modified: 08-25-2017 07:30 AM by Gilles59.)
Post: #87
|
|||
|
|||
RE: List Commands Library for 50g
(08-13-2017 04:59 PM)DavidM Wrote:(08-13-2017 04:22 PM)Werner Wrote: { {7, "longest"} {6 "longer"} {4 "long"} } With gofer list you can do Zip SORT Unzip Code:
There are also Zip3 and Unzip3 (but no ZipN) There is also a Sort command in GoferList with the syntax : { my list } << how to sort >> Sort but if the idea seems goods it is not stable at all and crash easily the system. In our exemple could be { "longest" "longer" "long" } << SIZE >> Sort But this dont work and crash badly : DONT TRY THIS But you can easily write your own command for this syntax in User RPL. Idea : Code: « { "longest" "long" "longer" } I imagine a DOSORT command : { list to sort } << How to sort>> DOSORT Internally The DOSORT program could use the native SORT example { 1. 123 "xyz" "abc" 'y=a*x*+b' } << TYPE >> DOSORT { -1 5 66 -89 33 } << ABS >> DOSORT { "Z" "a" "B" "d" } << UPCASE >> DOSORT etc. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)