RosettaCodeData/Task/Stack/Pike/stack.pike
2023-07-01 13:44:08 -04:00

6 lines
159 B
Text

object s = ADT.Stack();
s->push("a");
s->push("b");
write("top: %O, pop1: %O, pop2: %O\n",
s->top(), s->pop(), s->pop());
s->reset(); // Empty the stack