std:std.collections.Stack<T>.New
Creates a new stack.
New() creates an empty stack.
New( length:Int ) creates a stack that initially contains length
null values.
New( values:T[] ) creates a stack with the contents of an array.
New( values:List<T> ) creates a stack with the contents of a list.
New( values:Deque<T> ) create a stack with the contents of a deque.
New( values:Stack<T> ) create a stack with the contents of another stack.
Parameters | |
---|---|
length |
length The length of the stack. |
values |
values An array, list or stack. |