List Commands Library for 50g
|
03-13-2018, 01:06 AM
Post: #275
|
|||
|
|||
RE: List Commands Library for 50g
(03-11-2018 09:30 PM)John Keith Wrote: I have another little program here which finds all the Kaprekar numbers up to 1000: I'd love to feel good about that, but unfortunately I believe the SPLIT command is probably the primary time consumer in your loop. Even the following simple scenario takes a little over 30s on a 50g: Code: \<< SPLIT started out in life as a simple SysRPL "helper" command that took the place of doing 2 separate SUBs on a list. That structure is still in place, but it now also notes the original argument type and branches to type-specific SUB commands as needed (list, string, real, or zint). The first two of those are built-ins, the last two are custom-designed Saturn code. So any invocation of SPLIT (or RSPLT) is functionally equivalent to two consecutive SUB commands with a little pre-work being done to determine the indices. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)