List Commands Library for 50g
|
08-25-2017, 01:48 PM
Post: #89
|
|||
|
|||
RE: List Commands Library for 50g
(08-24-2017 10:25 PM)Gilles59 Wrote:(08-13-2017 04:59 PM)DavidM Wrote: Combining the two lists: The reason GoferLists' Sort command crashes in this case is that it is meant to work in a slightly different manner. The program used by your code is an objective function whereas the program required by Sort is a comparison operator. If you use the program \<< SIZE SWAP SIZE > \>> Sort will function correctly. Of course Sort should not crash the calculator under any circumstances and it is also quite slow. Coincidentally, I have written a short program that is similar to yours which I call GSORT as in General-purpose sort. It uses commands from the ListEx library rather than GoferLists, and works exactly like your proposed DOSORT command: Code: \<< \-> p Note that either program will work with LSORT provided that the list you are sorting does not contain a mix of exact integers and reals. John |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 10 Guest(s)