[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.1 Stack Operations

03188 DUP ( ob → ob ob )
62CB9 DUPDUP ( ob → ob ob ob )
5E370 NDUPN ( ob #n → ob..ob #n )
( ob #0 → #0 )
62FB1 DUPROT ( 1 2 → 2 2 1 )
61380 DUPUNROT ( 1 2 → 2 1 2 )
aka: SWAPOVER
630F1 DUPROLL ( 1..n #n → 1 3..n #n 2 )
61099 DUP4UNROLL ( 1 2 3 → 3 1 2 3 )
630DD DUPPICK ( n..1 #n → n..1 #n n-1 )
611F9 DUP3PICK ( 1 2 → 1 2 2 1 )
aka: 2DUPSWAP
6119E DUP#1+PICK ( n..1 #n → n..1 #n n )
5FC24 (DUP#2+PICK) ( n..1 #n → n..1 #n n+1 )
031AC 2DUP ( 1 2 → 1 2 1 2 )
611F9 2DUPSWAP ( 1 2 → 1 2 2 1 )
aka: DUP3PICK
63C40 2DUP5ROLL ( 1 2 3 → 2 3 2 3 1 )
031D9 NDUP ( 1..n #n → 1..n 1..n )
03244 DROP ( 1 → )
627A7 DROPDUP ( 1 2 → 1 1 )
63FA6 DROPNDROP ( 1..n #n ob → )
6270C DROPSWAP ( 1 2 3 → 2 1 )
62726 DROPSWAPDROP ( 1 2 3 → 2 )
aka: ROT2DROP, XYZ>Y
62FC5 DROPROT ( 1 2 3 4 → 2 3 1 )
63029 DROPOVER ( 1 2 3 → 1 2 1 )
03258 2DROP ( 1 2 → )
60F4B 3DROP ( 1 2 3 → )
aka: XYZ>
60F7E 4DROP ( 1..4 → )
aka: XYZW>
60F72 5DROP ( 1..5 → )
60F66 6DROP ( 1..6 → )
60F54 7DROP ( 1..7 → )
0326E NDROP ( 1..n #n → )
62F75 #1+NDROP ( ob 1..n #n → )
aka: N+1DROP
4B710 RESETDEPTH ( ob1..obn obn+1..obx #n → ob1..obn )
Drops all but #n levels of the stack.
0314C DEPTH ( 1..n → 1..n #n )
6416D UStackDepth ( → # )
The depth of the stack, similar to DEPTH.
5DE7D reversym ( 1..n #n → n..1 #n )
03223 SWAP ( 1 2 → 2 1 )
62747 SWAPDUP ( 1 2 → 2 1 1 )
6386C SWAP2DUP ( 1 2 → 2 1 2 1 )
60F9B SWAPDROP ( 1 2 → 2 )
aka: XY>Y
62830 SWAPDROPDUP ( 1 2 → 2 2 )
6284B SWAPDROPSWAP ( 1 2 3 → 3 1 )
aka: UNROTDROP, XYZ>ZX
60F33 SWAPROT ( 1 2 3 → 3 2 1 )
aka: UNROTSWAP, XYZ>ZYX
63C2C SWAP4ROLL ( 1 2 3 4 → 2 4 3 1 )
aka: XYZW>YWZX
61380 SWAPOVER ( 1 2 → 2 1 2 )
aka: DUPUNROT
63C54 SWAP3PICK ( 1 2 3 → 1 3 2 1 )
62001 2SWAP ( 1 2 3 4 → 3 4 1 2 )
03295 ROT ( 1 2 3 → 2 3 1 )
62775 ROTDUP ( 1 2 3 → 2 3 1 1 )
62C7D ROT2DUP ( 1 2 3 → 2 3 1 3 1 )
60F21 ROTDROP ( 1 2 3 → 2 3 )
aka: XYZ>YZ
62726 ROT2DROP ( 1 2 3 → 2 )
aka: DROPSWAPDROP, XYZ>Y
60F0E ROTDROPSWAP ( 1 2 3 → 3 2 )
aka: XYZ>ZY
60EE7 ROTSWAP ( 1 2 3 → 2 1 3 )
aka: XYZ>YXZ
6112A ROTROT2DROP ( 1 2 3 → 3 )
aka: UNROT2DROP, XYZ>Z
62CA5 ROTOVER ( 1 2 3 → 2 3 1 3 )
60FBB 4ROLL ( 1 2 3 4 → 2 3 4 1 )
aka: FOURROLL, XYZW>YZWX
62864 4ROLLDROP ( 1 2 3 4 → 2 3 4 )
62ECB 4ROLLSWAP ( 1 2 3 4 → 2 3 1 4 )
63001 4ROLLROT ( 1 2 3 4 → 2 4 1 3 )
aka: FOURROLLROT
630A1 4ROLLOVER ( 1 2 3 4 → 2 3 4 1 4 )
60FD8 5ROLL ( 1 2 3 4 5 → 2 3 4 5 1 )
aka: FIVEROLL
62880 5ROLLDROP ( 1 2 3 4 5 → 2 3 4 5 )
61002 6ROLL ( 1..6 → 2..6 1 )
aka: SIXROLL
6106B 7ROLL ( 1..7 → 2..7 1 )
aka: SEVENROLL
6103C 8ROLL ( 1..8 → 2..8 1 )
aka: EIGHTROLL
03325 ROLL ( 1..n #n → 2..n 1 )
62F89 ROLLDROP ( 1..n #n → 2..n )
62D45 ROLLSWAP ( 1..n #n → 2..n-1 1 n )
612F3 #1+ROLL ( ob 1..n #n → 1..n ob )
61318 #2+ROLL ( a b 1..n #n → b 1..n a )
612DE #+ROLL ( 1..n+m #n #m → 2..n+m 1 )
612CC #-ROLL ( 1..n-m #n #m → 2..n-m 1 )
60FAC UNROT ( 1 2 3 → 3 1 2 )
aka: 3UNROLL, XYZ>ZXY
62CF5 UNROTDUP ( 1 2 3 → 3 1 2 1 )
6284B UNROTDROP ( 1 2 3 → 3 1 )
aka: SWAPDROPSWAP, XYZ>ZX
6112A UNROT2DROP ( 1 2 3 → 3 )
aka: ROTROT2DROP, XYZ>Z
60F33 UNROTSWAP ( 1 2 3 → 3 2 1 )
aka: SWAPROT, XYZ>ZYX
60F0E UNROTSWAPDROP ( 1 2 3 → 3 2 )
aka: ROTDROPSWAP, XYZ>ZY
6308D UNROTOVER ( 1 2 3 → 3 1 2 1 )
60FAC 3UNROLL ( 1 2 3 → 3 1 2 )
aka: UNROT, XYZ>ZXY
6109E 4UNROLL ( 1 2 3 4 → 4 1 2 3 )
aka: FOURUNROLL, XYZW>WXYZ
62D09 4UNROLLDUP ( 1 2 3 4 → 4 1 2 3 3 )
6113C 4UNROLL3DROP ( 1 2 3 4 → 4 )
aka: XYZW>W
63015 4UNROLLROT ( 1 2 3 4 → 4 3 2 1 )
610C4 5UNROLL ( 1 2 3 4 5 → 5 1 2 3 4 )
aka: FIVEUNROLL
610FA 6UNROLL ( 1..6 → 6 1..5 )
aka: SIXUNROLL
62BC4 7UNROLL ( 1..7 → 7 1..6 )
63119 8UNROLL ( 1..8 → 8 1..7 )
6312D 10UNROLL ( 1..10 → 10 1..9 )
0339E UNROLL ( 1..n #n → n 1..n-1 )
61353 #1+UNROLL ( ob 1..n #n → n ob 1..n-1 )
61365 #2+UNROLL ( a b 1..n #n → n a b 1..n-1 )
6133E #+UNROLL ( 1..n+m #n #m → n+m 1..n+m-1 )
6132C #-UNROLL ( 1..n-m #n #m → n-m 1..n+m-1 )
032C2 OVER ( 1 2 → 1 2 1 )
62CCD OVERDUP ( 1 2 → 1 2 1 1 )
62D31 OVERSWAP ( 1 2 → 1 1 2 )
aka: OVERUNROT
62D31 OVERUNROT ( 1 2 → 1 1 2 )
aka: OVERSWAP
63105 OVER#2+UNROLL ( 1..n #n ob → ob 1..n #n )
63C90 OVER5PICK ( 1 2 3 4 → 1 2 3 4 3 1 )
63FBA 2OVER ( 1 2 3 4 → 1 2 3 4 1 2 )
611FE 3PICK ( 1 2 3 → 1 2 3 1 )
62EDF 3PICKSWAP ( 1 2 3 → 1 2 1 3 )
630B5 3PICKOVER ( 1 2 3 → 1 2 3 1 3 )
63C68 3PICK3PICK ( 1 2 3 → 1 2 3 1 2 )
35D08 (DROP3PICK) ( 1 2 3 4 → 1 2 3 1 )
6121C 4PICK ( 1 2 3 4 → 1 2 3 4 1 )
62EF3 4PICKSWAP ( 1 2 3 4 → 1 2 3 1 4 )
63C7C SWAP4PICK ( 1 2 3 4 → 1 2 4 3 1 )
630C9 4PICKOVER ( 1 2 3 4 → 1 2 3 4 1 4 )
6123A 5PICK ( 1 2 3 4 5 → 1 2 3 4 5 1 )
6125E 6PICK ( 1..6 → 1..6 1 )
61282 7PICK ( 1..7 → 1..7 1 )
612A9 8PICK ( 1..8 → 1..8 1 )
032E2 PICK ( 1..n #n → 1..n 1 )
611A3 #1+PICK ( 1..n #n-1 → 1..n 1 )
611BE #2+PICK ( 1..n #n-2 → 1..n 1 )
611D2 #3+PICK ( 1..n #n-3 → 1..n 1 )
611E1 #4+PICK ( 1..n #n-4 → 1..n 1 )
61184 #+PICK ( 1..n+m #n #m → 1..n+m 1 )
61172 #-PICK ( 1..n-m #n #m → 1..n-m 1 )


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated by Carsten Dominik on May, 30 2005 using texi2html