delphirtl

delphirtlDocs


delphirtl / Stack

Class: Stack<T>

A last in, first out class

Stack

Type Parameters

T

Constructors

new Stack()

new Stack<T>(): Stack<T>

Returns

Stack<T>

Accessors

length

Get Signature

get length(): number

The number of items in the store

Returns

number

Defined in

src/collections.ts:83

Methods

pop()

pop(): undefined | T

Returns

undefined | T

The last value that was pushed into the store

Defined in

src/collections.ts:71


push()

push(v): void

Parameters

v: T

Puts the given value into the store

Returns

void

Defined in

src/collections.ts:63