Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Doc/library/heapq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ populated list into a heap via function :func:`heapify`.
The following functions are provided:


.. function:: heapify(x)

Transform list *x* into a heap, in-place, in linear time.


.. function:: heappush(heap, item)

Push the value *item* onto the *heap*, maintaining the heap invariant.
Expand All @@ -61,11 +66,6 @@ The following functions are provided:
followed by a separate call to :func:`heappop`.


.. function:: heapify(x)

Transform list *x* into a heap, in-place, in linear time.


.. function:: heapreplace(heap, item)

Pop and return the smallest item from the *heap*, and also push the new *item*.
Expand Down
Loading