ndrop
Input Stack:
|
⇨ | Output Stack:
|
Remove the top N items on the stack.
Example:
a,0,:ndrop
Pos | Input | Output |
---|---|---|
0 | 0 | a |
1 | a |
a,b,c,2,:ndrop
Pos | Input | Output |
---|---|---|
0 | 2 | a |
1 | c | |
2 | b | |
3 | a |
a,b,c,4,:ndrop
Pos | Input | Output |
---|---|---|
0 | 4 | |
1 | c | |
2 | b | |
3 | a |
,:ndrop
Warning
Throws an exception due to missing the N
param.