Skip to main content
Module

x/structurae/binary-heap.ts>BinaryHeap.of

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

Creates a new BinaryHeap with a variable number of arguments, regardless of number or type of the arguments.

Parameters

...elements: Array<T>

the elements of which to create the heap

Returns

the new BinaryHeap