nlist

Input Stack:
N
a0
...
aN
Output Stack:
List(aN-1, ..., a0)
aN
 
 

Create a list with the top N items on the stack.

Since: 1.5.0

Examples:

a,0,:nlist
PosInputOutput
0 0 List()
1 a a
a,b,c,2,:nlist
PosInputOutput
0 2 List(b, c)
1 c a
2 b
3 a
a,b,c,4,:nlist
PosInputOutput
0 4 List(a, b, c)
1 c
2 b
3 a