Post Reply 
hp 28s - creating nested lists
02-19-2015, 08:53 PM
Post: #19
RE: hp 28s - creating nested lists
(02-19-2015 12:13 AM)mbrethen Wrote:  Let me see if I understand this.
Code:
# C53Bh
SYSEVAL # 3ACB5h
SYSEVAL # 3EFFh
SYSEVAL

equivalent to:
Code:
\<< SWAP OVER 1. SWAP START SWAP OVER NEXT DROP \>>

...

No, this isn't equal.

Code:
#  C53Bh SYSEVAL = COERCE
# 3ACB5h SYSEVAL = NDUPN
#  3EFFh SYSEVAL = {}N

Stack diagrams from RPLMAN.DOC:
Code:
COERCE          ( % --> # )
NDUPN           ( ob #n --> ob ... ob #n )
{}N             ( obn ... ob1 #n --> {list} )

simply duplicates the object n-times and put the objects into a list object.

As entry into the SysRPL world you may begin reading the RPLMAN.DOC document, available as separate file or as part of the orginal HPTOOLS package.
Visit this user's website 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 - Christoph Giesselink - 02-19-2015 08:53 PM



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