Post Reply 
hp 28s - creating nested lists
02-17-2015, 07:56 AM
Post: #10
RE: hp 28s - creating nested lists
(02-16-2015 11:24 PM)mbrethen Wrote:  Then I need 'SUB'

Correct.

You could also use a mix of both programs to avoid HEAD and TAIL:
Code:
\<<
  WHILE DUP SIZE
  REPEAT
    LIST\-> 1 -
    SWAP \-> n
    \<<
      \->LIST SWAP
      1 \->LIST { }
      1 n START
        OVER +
      NEXT
    \>>
    SWAP DROP SWAP
  END DROP
\>>

Cheers
Thomas
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
hp 28s - creating nested lists - mbrethen - 02-16-2015, 04:33 PM
RE: hp 28s - creating nested lists - Thomas Klemm - 02-17-2015 07:56 AM



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