RosettaCodeData/Task/Stack/Pike/stack.pike

7 lines
159 B
Plaintext

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