Post Reply 
Simple challenge in RPL, Extract the odd elements from a list
08-16-2017, 12:54 PM (This post was last modified: 08-16-2017 07:09 PM by compsystems.)
Post: #2
RE: Simple challenge in RPL
A simpler code than the next one?

with DOLIST
PHP Code:
«
  
'F' STO
  1 
'K' STO
  
{ } 'L' STO
  F SIZE 
'S' STO
  F
  1
  « F K GET 
'L' STOK 2 'K' STO K S >= « CLEAR L REVLIST KILL » IFT »
  DOLIST
  L REVLIST
» 
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



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