Stack class.

Implements push and pop.

Type Parameters

  • T

    The type of the satellite data.

Hierarchy

  • Stack

Constructors

Properties

Methods

Constructors

  • Type Parameters

    • T

    Parameters

    • Optional initial: T | T[]

      The value(s) with which to initialize the stack. An array will create a stack w/ the last element being the top of the stack. If no value provided, creates an empty stack.

    Returns Stack<T>

Properties

content: T[] = []

The content of the stack.

The last element is the the top of the stack.

Methods

Generated using TypeDoc