Heap.Heap.to_list: def of bend-kit-collections@0.1.4.1 Import: import bend-kit-collections@0.1.4.1/heap.bend as Heap Lines 98-100 of bend-kit-collections@0.1.4.1/heap.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-collections@0.1.4.1/heap.bend&start_line=98&end_line=100 import Base # the elements, smallest first def Heap.to_list(~A: Data, ~le: A -> A -> Bool, +h: Heap) -> List<&2, A>: Heap.to_list.go(~A, ~le, Heap.size(A, h), h) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=bend-kit-collections@0.1.4.1/heap.bend&name=Heap https://jend.leeeet.dev/definition.txt?path=bend-kit-collections@0.1.4.1/heap.bend&name=Heap.size https://jend.leeeet.dev/definition.txt?path=bend-kit-collections@0.1.4.1/heap.bend&name=Heap.to_list.go