Programming puzzles: processing lists!
|
06-12-2017, 04:48 PM
Post: #139
|
|||
|
|||
RE: Programming puzzles: processing lists!
(06-12-2017 02:21 PM)DavidM Wrote: I could put something like this in the library, but it's still fairly easy (and efficient) in UserRPL as well: I have the userRPL (that explodes the list, yours are very compressed in terms of code. Neat) of those commands, I wondered if making a sysRPL version would have been (way) faster. Quote:This is similar to a combination of (NEG) LROT with GoferList's Take, though the latter command returns its results in a list. I'm not sure what this would look like with multiple lists; could you provide an example? Sure, it is all for iterations instead of using DOLIST { 1 2 3 4 5 } { 1 2 3 4 5 } 2 @num list 2 @pick elements from head and rotate lists listHeadIterate output {3 4 5 1 2} {3 4 5 1 2} 1 1 2 2 Wikis are great, Contribute :) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)