2OVER
Copies the second topmost pair of items to the top of the stack
Input stack: a b c d
Output stack: a b c d a b
PumpkinDB> 1 2 3 4 2OVER
1 2 3 4 1 2
Allocation
None
Errors
EmptyStack error if there are less than four items on the stack
Tests
works : 1 2 3 4 2OVER STACK [1 2 3 4 1 2] EQUAL?.
empty_stack : [2OVER] TRY UNWRAP 0x04 EQUAL?.
empty_stack_1 : [1 2OVER] TRY UNWRAP 0x04 EQUAL?.
empty_stack_2 : [1 2 2OVER] TRY UNWRAP 0x04 EQUAL?.
empty_stack_3 : [1 2 3 2OVER] TRY UNWRAP 0x04 EQUAL?.