DUP

Duplicates an item at the top of the stack

Input stack: a

Output stack: a a

PumpkinDB> 0x10 DUP
0x10 0x10

Allocation

None

Errors

EmptyStack error if nothing is available on the stack

Tests

works : 1 1 DUP EQUAL?.
empty_stack : [DUP] TRY UNWRAP 0x04 EQUAL?.

results matching ""

    No results matching ""