Post Reply 
(50g) Mirror the stack
03-19-2016, 02:23 PM (This post was last modified: 03-19-2016 02:24 PM by Vtile.)
Post: #1
(50g) Mirror the stack
Hello, late yesterday (or yearly today) I were toying with the 50g before going to sleep, well I entered long series of the number to the stack just to notice I entered them in reverse order. Then I tried to find a "stack mirror" function or script, without success so I created this UserRPL software to do it. I'm sure there is more sophisticated method of doing it, but here is one solution.

Provided as is, in the hope it is usefull. Public domain.

Code:

<< DEPTH Y → X Y 
<< 2 'Y' STO
2 X START
Y PICK
2 Y + 'Y' STO
NEXT
X →LIST
X ROLLD
X 1 - DROPN
OBJ→ DROP
>>
>>

- Vtile
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(50g) Mirror the stack - Vtile - 03-19-2016 02:23 PM
RE: (50g) Mirror the stack - Gerald H - 03-19-2016, 02:50 PM
RE: (50g) Mirror the stack - rprosperi - 03-19-2016, 05:23 PM
RE: (50g) Mirror the stack - Vtile - 03-19-2016, 03:01 PM
RE: (50g) Mirror the stack - Tugdual - 03-19-2016, 04:38 PM
RE: (50g) Mirror the stack - Vtile - 03-19-2016, 04:54 PM
RE: (50g) Mirror the stack - Tugdual - 03-19-2016, 06:13 PM
RE: (50g) Mirror the stack - Tugdual - 03-19-2016, 05:08 PM
RE: (50g) Mirror the stack - Vtile - 03-19-2016, 05:53 PM
RE: (50g) Mirror the stack - Claudio L. - 03-19-2016, 06:32 PM
RE: (50g) Mirror the stack - Vtile - 03-19-2016, 06:38 PM



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