List Commands Library for 50g
|
03-28-2018, 08:24 PM
Post: #312
|
|||
|
|||
RE: List Commands Library for 50g
(03-28-2018 07:53 PM)pier4r Wrote: Idea for the library. I recall thinking that a companion to LPUSH for the right side of the list would be sensible, then I thought "just use +". I neglected to consider the specific case you bring up, despite the fact that I have run into that myself on numerous occasions. LPUSH is one of the smallest commands, and a companion LPSHR (LPUSHR) would also be very small and efficient (a single >TCOMP SysRPL command after the argument check should do the job). It would add whatever the SL1 object is to the list in SL2, without treating it differently if that object happens to be a list. It would also balance out the command set for LPOP/LPUSH/LPOPR. Seems like a good idea to me! I've added it to my TODO list. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 9 Guest(s)