POP

Synopsis
POP stackname
Description

Outputs the most recent thing that was pushed on the stack named stackname (using PUSH) and removes that member from the stack.

Example
MAKE "mystack []
PUSH "mystack 1
PUSH "mystack 2
PUSH "mystack 3
SHOW :mystack
[3 2 1]

SHOW POP "mystack
3

SHOW :mystack
[2 1]

SHOW POP "mystack
2

SHOW :mystack
[1]

SourceForge.net Logo