heapreplace « Buildin Function « Python Tutorial






13.21.heapreplace
13.21.1.heapreplace function pops the smallest element off the heap and then pushes a new element onto it.