push


Description:

public void push (owned T element)

Pushes an element onto the top of the stack.

Example:

    var stack = new Stack<string> ();
stack.push ("hello");
assert (stack.size () == 1);

Parameters:

element

the element to push.