We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00032a4 commit e753887Copy full SHA for e753887
Doc/library/heapq.rst
@@ -42,6 +42,11 @@ populated list into a heap via function :func:`heapify`.
42
The following functions are provided:
43
44
45
+.. function:: heapify(x)
46
+
47
+ Transform list *x* into a heap, in-place, in linear time.
48
49
50
.. function:: heappush(heap, item)
51
52
Push the value *item* onto the *heap*, maintaining the heap invariant.
@@ -61,11 +66,6 @@ The following functions are provided:
61
66
followed by a separate call to :func:`heappop`.
62
67
63
68
64
-.. function:: heapify(x)
65
-
- Transform list *x* into a heap, in-place, in linear time.
69
.. function:: heapreplace(heap, item)
70
71
Pop and return the smallest item from the *heap*, and also push the new *item*.
0 commit comments