def pop_root
import bend-collections@1.0.0.0/src/containers/binary_heap.bend as BinaryHeapimport Base
import bend-collections@1.0.0.0/src/containers/types/binary_heap.bend as E
274def pop_root(~A: Data, ~cmp: A -> A -> Cmp, size: Nat, +n: U32, depth: Nat, cap: U32, rr: Array<Maybe<&2, A>> & Maybe<&2, A>) -> Heap<A> & Result<&2, &2, E.Error, A>:
275 (arr, mr) = rr
276 pop_with(~A, ~cmp, size, n, depth, cap, arr, mr)