Skip to main content
Module

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

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

Adds elements to the heap.

Parameters

...items: Array<T>

elements to add

Returns

number

the new length of the heap