pick

Input Stack:
N
a0
...
aN
Output Stack:
aN-1
a0
...
aN

Pick an item in the stack and put a copy on the top.

Since: 1.5.0

Example:

a,0,:pick
PosInputOutput
0 0 a
1 a a
a,b,0,:pick
PosInputOutput
0 0 b
1 b b
2 a a
a,b,1,:pick
PosInputOutput
0 1 a
1 b b
2 a a