Post Reply 
Simple challenge in RPL, Extract the odd elements from a list
08-16-2017, 07:38 PM (This post was last modified: 08-16-2017 08:00 PM by Gilles59.)
Post: #8
RE: Simple challenge in RPL, Extract the odd elements from a list
(08-16-2017 07:13 PM)compsystems Wrote:  Ok with DOSUBS, waiting other alternatives (converting to array, tran, etc.) or optimizations with DOLIST

PHP Code:
'x^4-1' FACTORS
«
  1
  « NSUB 2 MOD SWAP IFT »
  DOSUBS
» 

Hi Compystems,

With your example, you can also do

Code:
 « DUP « TYPE »  MAP SWAP IFT »

Of with GoferList, just :

Code:
 « « TYPE »  Filter »

These filters only the items that are not real numbers from the list.
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 - Gilles59 - 08-16-2017 07:38 PM



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