Class Stack<T>

Type Parameters

  • T

Hierarchy

Accessors

Methods

Constructors

Accessors

  • get length(): number
  • Returns

    The size of the container.

    Example

    const container = new Vector([1, 2]);
    console.log(container.length); // 2

    Returns number

Methods

  • Description

    Insert element to stack's end.

    Description

    The element you want to push to the back.

    Returns

    The container length after erasing.

    Parameters

    • element: T

    Returns number

Constructors

Generated using TypeDoc