<unique-min-heap> ( -- unique-heap )
Associative heaps
Prev:<assoc-heap> ( assoc heap -- assoc-heap )
Next:<unique-max-heap> ( -- unique-heap )


Vocabulary
assoc-heaps

Inputs and outputs
unique-heapan assoc-heap


Word description
Creates a new assoc-heap where the assoc is a hashtable and the heap is a min-heap. Popping an element from the heap leaves this element in the hashtable to ensure that the element will not be processed again.

See also
<unique-max-heap>

Definition
USING: heaps kernel ;

IN: assoc-heaps

: <unique-min-heap> ( -- unique-heap )
H{ } clone <min-heap> <assoc-heap> ;