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.
2 parents 47b2dd9 + 6826a04 commit 02d0dd0Copy full SHA for 02d0dd0
src/library/scala/collection/mutable/PriorityQueue.scala
@@ -16,6 +16,11 @@ import generic._
16
* To prioritize elements of type A there must be an implicit
17
* Ordering[A] available at creation.
18
*
19
+ * Only the `dequeue` and `dequeueAll` methods will return methods in priority
20
+ * order (while removing elements from the heap). Standard collection methods
21
+ * including `drop` and `iterator` will remove or traverse the heap in whichever
22
+ * order seems most convenient.
23
+ *
24
* @tparam A type of the elements in this priority queue.
25
* @param ord implicit ordering used to compare the elements of type `A`.
26
0 commit comments