List Commands Library for 50g
|
09-27-2017, 02:40 PM
Post: #171
|
|||
|
|||
RE: List Commands Library for 50g
(09-27-2017 11:47 AM)John Keith Wrote:(09-26-2017 03:29 PM)DavidM Wrote: Wouldn't GoferList's FindIndex work for this? I was doing a mental translation of Pier's request into what I thought he was trying to do in the other thread, which was looking for the largest number in the list which was still smaller than the target. I believe that is still doable with Find/FindIndex (you may need to reverse the list first, though). John's solution is more accurate to the actual request Pier made, though. KSORT is really just a "helper command" that combines two lists into a "list of lists" for either the built-in SORT or a program of your own choosing, then returns the lists to their original (but newly sorted) grouping. I haven't tried to reinvent the code for sorting, especially since Werner already did such a wonderful job with LSORT. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)