std.collections.Stack.New - nitrologic/monkey2 GitHub Wiki
std::std.collections.std.collections.Stack.New
Method New:Void( )
monkey:monkey.types.Int )
Method New:Void( length:Method New:Void( values:T[] )
std:std.collections.List )
Method New:Void( values:std:std.collections.Deque )
Method New:Void( values:std:std.collections.Stack )
Method New:Void( values: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 ) creates a stack with the contents of a list.
New( values:Deque ) create a stack with the contents of a deque.
New( values:Stack ) create a stack with the contents of another stack.
Parameters | |
---|---|
length |
length The length of the stack. |
values |
values An array, list or stack. |