Post Reply 
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 :)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Simple challenge in RPL - compsystems - 08-16-2017, 12:54 PM
RE: Simple challenge in RPL, Extract the odd elements from a list - pier4r - 08-16-2017 01:50 PM



User(s) browsing this thread: 2 Guest(s)