List Commands Library for 50g
|
04-04-2018, 10:41 PM
Post: #326
|
|||
|
|||
RE: List Commands Library for 50g
(04-04-2018 04:57 PM)DavidM Wrote: That said, I'm still pondering the merits of creating specialized functions for LMAX/LMIN processing. I've used MAX in particular for lists on several occasions recently. Ok. It was easy to throw this together for a test. LMAX/LMIN both do the following: - check the stack for a list argument - if the list only has one element, return that element - if the list is empty, STREAM generates "invalid dimension" - otherwise do the functional equivalent to << MAX/MIN >> STREAM (whichever one was appropriate) It's a small amount faster than the UserRPL counterpart, mostly because the executable passed to STREAM doesn't need the « » encapsulation. The total code size for all of this is 76 bytes. Is it worth including in the next update? If so, which menu group makes the most sense? I'm thinking TEST, but LMATH might also be appropriate. I could see either for this. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)