Class PriorityQueue<T>

An priority queue class since ts doesn't have one

Inverted for ease of use with pricing (0 is lowest priority)

Type Parameters

  • T

Hierarchy

  • PriorityQueue

Constructors

Properties

Methods

Constructors

Properties

data: [number, T][] = []

Methods

  • Parameters

    • item: T
    • priority: number

    Returns boolean

  • Parameters

    • num: undefined | number

    Returns undefined | T

Generated using TypeDoc