UNPKG

binomial-heap

Version:

No dependency binomial heap, compatible with typescript, can have custom compare function

3 lines (2 loc) 157 B
import { Heap } from '../types'; export declare const heap: <T>(items: T[], compare?: ((a: T, b: T) => number) | ((a: T) => number) | undefined) => Heap<T>;