Simple challenge in RPL, Extract the odd elements from a list
|
08-16-2017, 01:50 PM
(This post was last modified: 08-16-2017 01:50 PM by pier4r.)
Post: #4
|
|||
|
|||
RE: Simple challenge in RPL, Extract the odd elements from a list
With DOSUBS/DOLIST I guess it will be the fastest way.
I though DavidM made a command to specify multiple position to pick elements from a list (like { 3 5 7 9 11 13 } { 2 4 } LGET -> { 5 9 } . Note that in this case LGET would be short of a sort of generalized SUB ) but it is not the case, so at most one can use LHDTL to go through the list. edit: and Werner found a very nice way. Wikis are great, Contribute :) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)