Stack Class (Collection)
The Stack class allows you to create a collection of data elements accessed on a last-in, first-out (LIFO) basis.
An element is added to the top of the stack collection using push(oElement). where oElement is the data to be added.
myStackObj.push(oElement); //adds oElement at the top of the stack
Elements are read from the top of the stack using peek().
Plot1(myStackObj.peek().tostring()); //displays element at top of stack as a string
Elements are removed from the stack using pop().
myStackObj.pop(); //removes element at top of stack
Namespace: elsystem.collections