List Commands Library for 50g
|
01-07-2018, 07:30 PM
Post: #241
|
|||
|
|||
RE: List Commands Library for 50g
(01-06-2018 07:29 PM)DavidM Wrote: I was thinking that's what GoferList's Insert did, but after looking at it more closely, Insert is more like an "append". That's an odd misnomer, given that "+" is much easier to enter into a program (and it essentially does the same thing as far as I can see). Insert does at least call AppendList, which might perform better than >TCOMP in some cases (which is what + does). What GoferLists' Insert command actually does is to append an object to the list if and only if the list does not already contain the object. Sort of like Code: DUP2 POS { DROP } { + } IFTE or perhaps + LDDUP or + Nub I can see a benefit to either (or both!) interpretations of LINSR / Insert. What Gilles is proposing is easy enough in UserRPL but a fast Library command would of course be preferable. John |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)