std:std.collections.Stack<T>.Insert

Method Insert:Void( index:Int,value:T )

Inserts a value at an index in the stack.

In debug builds, a runtime error will occur if index is less than 0 or greater than the stack length.

If index is equal to the stack length, the value is added to the end of the stack.

Parameters
index index The index of the value to insert.
value value The value to insert.