Class Queue<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

    Inserts element to queue's end.

    Returns

    The container length after pushing.

    Parameters

    • element: T

      The element you want to push to the front.

    Returns number

Constructors

Generated using TypeDoc