List Commands Library for 50g
|
08-13-2017, 02:36 PM
Post: #63
|
|||
|
|||
RE: List Commands Library for 50g
(08-13-2017 01:38 PM)BruceH Wrote: Some thoughts / suggestions... The only reason was my trying to keep the command names as short as possible. But given that I had the same issue just this morning when playing around with some code, I tend to agree with you that LROLL and LROLLD would be better. (08-13-2017 01:38 PM)BruceH Wrote: Allow LSPLT to take a negative value and return an empty list plus the full list. This would actually make it more consistent with the opposite condition (an argument greater than the list length). So, again, I tend to agree with you. (08-13-2017 01:38 PM)BruceH Wrote: Introduce an RSPLT. 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? (08-13-2017 01:38 PM)BruceH Wrote: Change their names to LSPLIT & RSPLIT ;-) Probably makes sense. (08-13-2017 01:38 PM)BruceH Wrote: LPICK command... Nice one. Shouldn't be too difficult... just need to watch for invalid/out-of-bounds conditions. How should negative/0 values be handled? Should identifiers in the selection list be RCL'd? (08-13-2017 01:38 PM)BruceH Wrote: A new 'sort by reference' command (LSORT) command: I've thought about doing something like this for a while, actually. Playing around with a quicksort routine gave me a new appreciation for the internal SORT command, which is quite fast despite the fact that it still has to execute the equivalent of a UserRPL comparison operator for each tested pair. I'm not sure which method the internal SORT command uses, but it appears to be very efficient. There's actually a couple of things I'd like to spend more time on before attempting something like this, though. Perhaps this could be added in some future 1.1 version. To all: Bruce has some good ideas here. I'd be especially interested in hearing from others about the commands being renamed; would the (slightly) longer forms present any issues? Are there other commands that would be easier to use with a modified name? Now is the best time to nail this down. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)