Heap.Heap.to_list.go: def of bend-kit-collections@0.1.4.1 Import: import bend-kit-collections@0.1.4.1/heap.bend as Heap Lines 85-96 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=85&end_line=96 import Base def Heap.to_list.go( ~A: Data, ~le: A -> A -> Bool, fuel: Nat, h: Heap ) -> List<&2, A>: match fuel: case 0n: Nil{} case 1n+f: match h: case HLeaf{}: Nil{} case HNode{n, x, l, r}: x <> Heap.to_list.go(~A, ~le, f, Heap.merge(~A, ~le, l, r)) 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=Base/base.bend&name=Nat 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.merge