List Commands Library for 50g
|
08-13-2017, 09:59 PM
(This post was last modified: 08-13-2017 09:59 PM by BruceH.)
Post: #69
|
|||
|
|||
RE: List Commands Library for 50g
(08-13-2017 02:36 PM)DavidM Wrote: Sorry to be dense, but what would RSPLT do? Remove? The "L" in most of the commands is an abbreviation for "List". What does the "R" designate?Sorry, it is me that is being dense. I had mentally started to read the 'L' in 'LSPLIT' as 'left-split' (since it counts from the left) and so 'RSPLIT' was me thinking of a command for splitting a list but counting from the right. To follow convention it would need to be 'LRSPLIT' or maybe 'LSPLITR'.[1] Regarding the rest: thanks for being so receptive to my suggestions. I take the point about LSORT already being able to do the 'two list sort' provided they are reformatted using DUP SIZE LSDIV SWAP ADD first, but then there needs to be another 'magic incantation' following the LSORT to strip the number from the sublists to get the desired output. This is exactly my point about trying to remove extraneous code and focusing on the solution. If it helps, I would be more than happy if it were implemented as 'LSORT2' that was simply a wrapper that ran the above commands and then invoked LSORT (although it might need careful testing to avoid issues with sublists in the original list etc). [1] But that's now starting to sound like a Monty Python sketch. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)