Skip to main content
Module

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

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

Changes elements of the heap.

Parameters

start: number

starting index

optional
deleteCount: number

the amount of elements to delete

...items: Array<T>

elements to add

Returns

Array<T>

the deleted elements