HeapEntry

import { HeapEntry } from "jsr:@ende/data-structures/unstable-indexed-heap";

interface ยท experimental

interface HeapEntry<K, P = number>

A key-priority pair returned by IndexedHeap methods.

Fields are readonly to signal that mutating a returned entry has no effect on the heap.

Properties

key

readonly key: K

The key that identifies this entry in the heap.

priority

readonly priority: P

The priority of this entry (smaller = higher priority by default).

Source