BinaryHeap.drain_mb: def of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/src/containers/binary_heap.bend as BinaryHeap Lines 321-328 of bend-collections@1.0.0.0/src/containers/binary_heap.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/src/containers/binary_heap.bend&start_line=321&end_line=328 import Base def drain_mb(~A: Data, arr: Array>, root: A, +m: U32, ml: Maybe<&2, A>, empty: Bool) -> Drain: match ml empty: case None{} _: DrLast{arr, root} case Some{last} True{}: DrLast{arr, root} case Some{last} False{}: DrMore{arr, root, m, last} Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/containers/binary_heap.bend&name=Drain