List Commands Library for 50g

08132017, 04:22 PM
Post: #66




RE: List Commands Library for 50g
(08132017 02:36 PM)DavidM Wrote:(08132017 01:38 PM)BruceH Wrote: A new 'sort by reference' command (LSORT) command: The RPL SORT routine uses binary insertion. Since insertion in this case is a stack roll, and that has been implemented very efficiently in machine language, you're going to have a hard time beating it using SysRPL only. It (and my LSORT as well) actually covers Bruce's example, but it must be presented differently: { {7, "longest"} {6 "longer"} {4 "long"} } SORT returns { {4 "long"} {6 "longer"} {7, "longest"} } Cheers, Werner 41CVâ€ ,42S,48GX,49G,DM42,DM41X,17BII,15CE,DM15L,12C,16CE 

« Next Oldest  Next Newest »

User(s) browsing this thread: 1 Guest(s)