chickadee » binary-heap » heap-delete-max

heap-delete-maxprocedure

removes the max key and the corresponding association from the heap. Returns a (key . value) pair of the removed association. If the heap is empty, an error is signalled.