Stack (Constructor)

Summary

Constructs a System.Stack<T> object.

Signatures

Click on a signature to select it and view its documentation.

Usage

public Stack()

Description

Constructs an empty stack.

Examples

Initialization with data
1
2
3
4
import System;
 
auto stack = new System.Stack<int>([ 1, 2, 3 ]);
Console.log(stack.pop()); // 3

Share

HTML | BBCode | Direct Link