Skip to main content
Module

x/structurae/binary-heap.ts>BinaryHeap#push

Data structures for high-performance JavaScript applications.
Latest
method BinaryHeap.prototype.push
import { BinaryHeap } from "https://deno.land/x/structurae@4.0.1/binary-heap.ts";

Adds items to the heap.

Parameters

...elements: Array<T>

items to add

Returns

number

new length of the heap