Post Reply 
hp 28s - creating nested lists
02-16-2015, 08:06 PM
Post: #3
RE: hp 28s - creating nested lists
Here's another solution that works with the HP-48:

Code:
\<<
  REVLIST
  WHILE DUP SIZE
  REPEAT DUP TAIL
    SWAP HEAD
    ROT 1 \->LIST
    { } ROT
    1 SWAP START
      OVER +
    NEXT
    SWAP DROP SWAP
  END DROP
\>>

But maybe you can still use the idea for the HP-28.
Since it's not possible to append a list as an element to another list I had to wrap it into a list: 1 \->LIST

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-16-2015 08:06 PM



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