WRAP
Takes a portion of the stack and pushes it back as a byte array
Input stack: ... n
Output stack: a
WRAP
takes n
items off the top of the stack and pushes them as a binary
form PumpkinScript onto the stack. If passed to UNWRAP,
the same stack portion will be restored.
PumpkinDB> 1 2 3 2 WRAP
0x1 0x1213
PumpkinDB> 1 2 3 2 WRAP UNWRAP
0x1 0x2 0x3
Allocation
Allocates for the new values
Errors
EmptyStack error if there is less than one item on the stack
Tests
works : 1 2 3 3 WRAP [1 2 3] EQUAL?.
empty_stack : [WRAP] TRY UNWRAP 0x04 EQUAL?.