PriorityQueue.get: def of bend-collections@1.0.0.0
Import: import bend-collections@1.0.0.0/src/containers/priority_queue.bend as PriorityQueue
Lines 18-19 of bend-collections@1.0.0.0/src/containers/priority_queue.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/src/containers/priority_queue.bend&start_line=18&end_line=19
import Base
import bend-collections@1.0.0.0/src/containers/binary_heap.bend as K
import bend-collections@1.0.0.0/src/containers/types/binary_heap.bend as E
def get(~A: Data, ~cmp: A -> A -> Cmp, h: K.Heap) -> K.Heap & Result<&2, &2, E.Error, A>:
K.pop(~A, ~cmp, h)
Uses (6):
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Cmp
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result
https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/containers/binary_heap.bend&name=Heap
https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/containers/binary_heap.bend&name=pop
https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/containers/types/binary_heap.bend&name=Error