class PriorityQueue[A] extends AbstractIterable[A] with Iterable[A] with IterableOps[A, Iterable, PriorityQueue[A]] with StrictOptimizedIterableOps[A, Iterable, PriorityQueue[A]] with Builder[A, PriorityQueue[A]] with Cloneable[PriorityQueue[A]] with Growable[A] with Serializable
The PriorityQueues
class implements priority queues using a heap.
To prioritize elements of type A there must be an implicit
Ordering [A] available at creation.
If multiple elements have the same priority in the ordering of this
PriorityQueue, no guarantees are made regarding the order in which elements
are returned by dequeue
or dequeueAll
. In particular, that means this
class does not guarantee first in first out behaviour that may be
incorrectly inferred from the Queue part of the name of this class.
Only the dequeue
and dequeueAll
methods will return elements in priority
order (while removing elements from the heap). Standard collection methods
including drop
, iterator
, and toString
will remove or traverse the heap
in whichever order seems most convenient.
Therefore, printing a PriorityQueue
will not reveal the priority order of
the elements, though the highest-priority element will be printed first. To
print the elements in order, one must duplicate the PriorityQueue
(by using
clone
, for instance) and then dequeue them:
- A
type of the elements in this priority queue.
val pq = collection.mutable.PriorityQueue(1, 2, 5, 3, 7) println(pq) // elements probably not in order println(pq.clone.dequeueAll) // prints ArraySeq(7, 5, 3, 2, 1)
- Alphabetic
- By Inheritance
- PriorityQueue
- Serializable
- Cloneable
- Cloneable
- Builder
- Growable
- Clearable
- StrictOptimizedIterableOps
- AbstractIterable
- Iterable
- AbstractIterable
- Iterable
- IterableFactoryDefaults
- IterableOps
- IterableOnceOps
- IterableOnce
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new PriorityQueue()(implicit ord: Ordering[A])
- ord
implicit ordering used to compare the elements of type
A
.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def ++(xs: IterableOnce[A]): PriorityQueue[A]
Adds all elements provided by a
IterableOnce
object into the priority queue.Adds all elements provided by a
IterableOnce
object into the priority queue.- xs
a iterable object.
- returns
a new priority queue containing elements of both
xs
andthis
.
- final def ++[B >: A](suffix: IterableOnce[B]): Iterable[B]
- Definition Classes
- IterableOps
- Annotations
- @inline()
- final def ++=(xs: IterableOnce[A]): PriorityQueue.this.type
- Definition Classes
- Growable
- Annotations
- @inline()
- final def +=(elem: A): PriorityQueue.this.type
- Definition Classes
- Growable
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addAll(xs: IterableOnce[A]): PriorityQueue.this.type
Add all elements.
Add all elements.
- Definition Classes
- PriorityQueue → Growable
- def addOne(elem: A): PriorityQueue.this.type
Inserts a single element into the priority queue.
Inserts a single element into the priority queue.
- elem
the element to insert.
- returns
this priority queue.
- Definition Classes
- PriorityQueue → Growable
- final def addString(b: StringBuilder): StringBuilder
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def addString(b: StringBuilder, sep: String): StringBuilder
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
- Definition Classes
- IterableOnceOps
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def className: String
- Attributes
- protected[this]
- Definition Classes
- PriorityQueue → Iterable
- def clear(): Unit
Removes all elements from the queue.
Removes all elements from the queue. After this operation is completed, the queue will be empty.
- Definition Classes
- PriorityQueue → Builder → Clearable
- def clone(): PriorityQueue[A]
This method clones the priority queue.
This method clones the priority queue.
- returns
a priority queue with the same elements.
- Definition Classes
- PriorityQueue → Cloneable → AnyRef
- final def coll: PriorityQueue.this.type
- Attributes
- protected
- Definition Classes
- Iterable → IterableOps
- def collect[B](pf: PartialFunction[A, B]): Iterable[B]
- Definition Classes
- StrictOptimizedIterableOps → IterableOps → IterableOnceOps
- def collectFirst[B](pf: PartialFunction[A, B]): Option[B]
- Definition Classes
- IterableOnceOps
- def concat[B >: A](suffix: IterableOnce[B]): Iterable[B]
- Definition Classes
- IterableOps
- def copyToArray[B >: A](xs: Array[B], start: Int, len: Int): Int
- Definition Classes
- PriorityQueue → IterableOnceOps
- def copyToArray[B >: A](xs: Array[B], start: Int): Int
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- def copyToArray[B >: A](xs: Array[B]): Int
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- def corresponds[B](that: IterableOnce[B])(p: (A, B) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def count(p: (A) => Boolean): Int
- Definition Classes
- IterableOnceOps
- def decreaseKey(elem: A, upElem: A): Unit
Since the element's priority is being decreased, move it to a lower priority position (toward the back).
Since the element's priority is being decreased, move it to a lower priority position (toward the back).
- elem
the element to reposition
- upElem
the update version of the element to reposition
- def dequeue(): A
Returns the element with the highest priority in the queue, and removes this element from the queue.
Returns the element with the highest priority in the queue, and removes this element from the queue. throws NoSuchElementException
- returns
the element with the highest priority.
- def dequeueAll[A1 >: A]: Seq[A1]
Returns and removes all the elements in the priority queue.
- def drop(n: Int): PriorityQueue[A]
- Definition Classes
- IterableOps → IterableOnceOps
- def dropRight(n: Int): PriorityQueue[A]
- Definition Classes
- StrictOptimizedIterableOps → IterableOps
- def dropWhile(p: (A) => Boolean): PriorityQueue[A]
- Definition Classes
- IterableOps → IterableOnceOps
- def empty: PriorityQueue[A]
- Definition Classes
- PriorityQueue → IterableFactoryDefaults → IterableOps
- def enqueue(elems: A*): Unit
Adds all elements to the queue.
Adds all elements to the queue.
- elems
the elements to add.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def exists(p: (A) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def filter(pred: (A) => Boolean): PriorityQueue[A]
- Definition Classes
- StrictOptimizedIterableOps → IterableOps → IterableOnceOps
- def filterImpl(pred: (A) => Boolean, isFlipped: Boolean): PriorityQueue[A]
- Attributes
- protected[collection]
- Definition Classes
- StrictOptimizedIterableOps
- def filterNot(pred: (A) => Boolean): PriorityQueue[A]
- Definition Classes
- StrictOptimizedIterableOps → IterableOps → IterableOnceOps
- def find(p: (A) => Boolean): Option[A]
- Definition Classes
- IterableOnceOps
- def fixDown(as: Array[AnyRef], m: Int, n: Int): Boolean
Make swaps going down the tree.
Make swaps going down the tree. Returns true if any swaps were done (used in heapify).
- Attributes
- protected
- def fixUp(as: Array[AnyRef], m: Int): Unit
Make swaps going up the tree.
Make swaps going up the tree.
- Attributes
- protected
- def flatMap[B](f: (A) => IterableOnce[B]): Iterable[B]
- Definition Classes
- StrictOptimizedIterableOps → IterableOps → IterableOnceOps
- def flatten[B](implicit toIterableOnce: (A) => IterableOnce[B]): Iterable[B]
- Definition Classes
- StrictOptimizedIterableOps → IterableOps → IterableOnceOps
- def fold[A1 >: A](z: A1)(op: (A1, A1) => A1): A1
- Definition Classes
- IterableOnceOps
- def foldLeft[B](z: B)(op: (B, A) => B): B
- Definition Classes
- IterableOnceOps
- def foldRight[B](z: B)(op: (A, B) => B): B
- Definition Classes
- IterableOnceOps
- def forall(p: (A) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def foreach[U](f: (A) => U): Unit
- Definition Classes
- IterableOnceOps
- def fromSpecific(coll: IterableOnce[A]): PriorityQueue[A]
Make a priority from a collection type that is not eligible for EvidenceIterableFactoryDefaults since C != CC[A] (PriorityQueue[A] != Iterable[A])
Make a priority from a collection type that is not eligible for EvidenceIterableFactoryDefaults since C != CC[A] (PriorityQueue[A] != Iterable[A])
- Attributes
- protected
- Definition Classes
- PriorityQueue → IterableFactoryDefaults → IterableOps
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def groupBy[K](f: (A) => K): Map[K, PriorityQueue[A]]
- Definition Classes
- IterableOps
- def groupMap[K, B](key: (A) => K)(f: (A) => B): Map[K, Iterable[B]]
- Definition Classes
- IterableOps
- def groupMapReduce[K, B](key: (A) => K)(f: (A) => B)(reduce: (B, B) => B): Map[K, B]
- Definition Classes
- IterableOps
- def grouped(size: Int): Iterator[PriorityQueue[A]]
- Definition Classes
- IterableOps
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def head: A
Returns the element with the highest priority in the queue, or throws an error if there is no element contained in the queue.
Returns the element with the highest priority in the queue, or throws an error if there is no element contained in the queue.
- returns
the element with the highest priority.
- Definition Classes
- PriorityQueue → IterableOps
- def headOption: Option[A]
- Definition Classes
- IterableOps
- def increaseKey(elem: A, upElem: A): Unit
Since the element's priority is being increased, move it to a higher priority position (toward the front).
Since the element's priority is being increased, move it to a higher priority position (toward the front).
- elem
the element to reposition
- upElem
the update version of the element to reposition
- def init: PriorityQueue[A]
- Definition Classes
- IterableOps
- def inits: Iterator[PriorityQueue[A]]
- Definition Classes
- IterableOps
- def isEmpty: Boolean
- Definition Classes
- PriorityQueue → IterableOnceOps
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isTraversableAgain: Boolean
- Definition Classes
- IterableOps → IterableOnceOps
- def iterableFactory: IterableFactory[Iterable]
- Definition Classes
- Iterable → Iterable → IterableOps
- def iterator: Iterator[A]
Returns an iterator which yields all the elements.
Returns an iterator which yields all the elements. Note: The order of elements returned is undefined. If you want to traverse the elements in priority queue order, use
clone().dequeueAll.iterator
.- returns
an iterator over all the elements.
- Definition Classes
- PriorityQueue → IterableOnce
- def knownSize: Int
- Definition Classes
- PriorityQueue → Growable → IterableOnce
- def last: A
- Definition Classes
- IterableOps
- def lastOption: Option[A]
- Definition Classes
- IterableOps
- def lazyZip[B](that: Iterable[B]): LazyZip2[A, B, PriorityQueue.this.type]
- Definition Classes
- Iterable
- def length: Int
- def map[B](f: (A) => B): Iterable[B]
- Definition Classes
- StrictOptimizedIterableOps → IterableOps → IterableOnceOps
- def mapInPlace(f: (A) => A): PriorityQueue.this.type
- def mapResult[NewTo](f: (PriorityQueue[A]) => NewTo): Builder[A, NewTo]
- Definition Classes
- Builder
- def max[B >: A](implicit ord: Ordering[B]): A
- Definition Classes
- IterableOnceOps
- def maxBy[B](f: (A) => B)(implicit cmp: Ordering[B]): A
- Definition Classes
- IterableOnceOps
- def maxByOption[B](f: (A) => B)(implicit cmp: Ordering[B]): Option[A]
- Definition Classes
- IterableOnceOps
- def maxOption[B >: A](implicit ord: Ordering[B]): Option[A]
- Definition Classes
- IterableOnceOps
- def min[B >: A](implicit ord: Ordering[B]): A
- Definition Classes
- IterableOnceOps
- def minBy[B](f: (A) => B)(implicit cmp: Ordering[B]): A
- Definition Classes
- IterableOnceOps
- def minByOption[B](f: (A) => B)(implicit cmp: Ordering[B]): Option[A]
- Definition Classes
- IterableOnceOps
- def minOption[B >: A](implicit ord: Ordering[B]): Option[A]
- Definition Classes
- IterableOnceOps
- final def mkString: String
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def mkString(sep: String): String
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def mkString(start: String, sep: String, end: String): String
- Definition Classes
- IterableOnceOps
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newSpecificBuilder: Builder[A, PriorityQueue[A]]
- Attributes
- protected
- Definition Classes
- PriorityQueue → IterableFactoryDefaults → IterableOps
- def nonEmpty: Boolean
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- implicit val ord: Ordering[A]
- def partition(p: (A) => Boolean): (PriorityQueue[A], PriorityQueue[A])
- Definition Classes
- StrictOptimizedIterableOps → IterableOps
- def partitionMap[A1, A2](f: (A) => Either[A1, A2]): (Iterable[A1], Iterable[A2])
- Definition Classes
- StrictOptimizedIterableOps → IterableOps
- def printInOrder: Unit
Print the elements in the priority queue in order.
- def product[B >: A](implicit num: Numeric[B]): B
- Definition Classes
- IterableOnceOps
- def reduce[B >: A](op: (B, B) => B): B
- Definition Classes
- IterableOnceOps
- def reduceLeft[B >: A](op: (B, A) => B): B
- Definition Classes
- IterableOnceOps
- def reduceLeftOption[B >: A](op: (B, A) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reduceOption[B >: A](op: (B, B) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reduceRight[B >: A](op: (A, B) => B): B
- Definition Classes
- IterableOnceOps
- def reduceRightOption[B >: A](op: (A, B) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def result(): PriorityQueue[A]
- Definition Classes
- PriorityQueue → Builder
- def reverse: PriorityQueue[A]
Returns the reverse of this priority queue.
Returns the reverse of this priority queue. The new priority queue has the same elements as the original, but the opposite ordering. For example, the element with the highest priority in
pq
has the lowest priority inpq.reverse
, and vice versa. Ties are handled arbitrarily. Elements with equal priority may or may not be reversed with respect to each other.- returns
the reversed priority queue.
- def reverseIterator: Iterator[A]
Returns an iterator which yields all the elements in the reverse order than that returned by the method
iterator
.Returns an iterator which yields all the elements in the reverse order than that returned by the method
iterator
. Note: The order of elements returned is undefined.- returns
an iterator over all elements sorted in descending order.
- def reversed: Iterable[A]
- Attributes
- protected
- Definition Classes
- IterableOnceOps
- def scan[B >: A](z: B)(op: (B, B) => B): Iterable[B]
- Definition Classes
- IterableOps
- def scanLeft[B](z: B)(op: (B, A) => B): Iterable[B]
- Definition Classes
- StrictOptimizedIterableOps → IterableOps → IterableOnceOps
- def scanRight[B](z: B)(op: (A, B) => B): Iterable[B]
- Definition Classes
- IterableOps
- def size: Int
- Definition Classes
- PriorityQueue → IterableOnceOps
- def sizeCompare(that: Iterable[_]): Int
- Definition Classes
- IterableOps
- def sizeCompare(otherSize: Int): Int
- Definition Classes
- IterableOps
- final def sizeHint(coll: IterableOnce[_], delta: Int): Unit
- Definition Classes
- Builder
- def sizeHint(size: Int): Unit
- Definition Classes
- Builder
- final def sizeHintBounded(size: Int, boundingColl: Iterable[_]): Unit
- Definition Classes
- Builder
- final def sizeIs: SizeCompareOps
- Definition Classes
- IterableOps
- Annotations
- @inline()
- def slice(from: Int, until: Int): PriorityQueue[A]
- Definition Classes
- IterableOps → IterableOnceOps
- def sliding(size: Int, step: Int): Iterator[PriorityQueue[A]]
- Definition Classes
- IterableOps
- def sliding(size: Int): Iterator[PriorityQueue[A]]
- Definition Classes
- IterableOps
- def span(p: (A) => Boolean): (PriorityQueue[A], PriorityQueue[A])
- Definition Classes
- StrictOptimizedIterableOps → IterableOps → IterableOnceOps
- def splitAt(n: Int): (PriorityQueue[A], PriorityQueue[A])
- Definition Classes
- IterableOps → IterableOnceOps
- def stepper[S <: Stepper[_]](implicit shape: StepperShape[A, S]): S
- Definition Classes
- IterableOnce
- final def strictOptimizedCollect[B, C2](b: Builder[B, C2], pf: PartialFunction[A, B]): C2
- Attributes
- protected[this]
- Definition Classes
- StrictOptimizedIterableOps
- Annotations
- @inline()
- final def strictOptimizedConcat[B >: A, C2](that: IterableOnce[B], b: Builder[B, C2]): C2
- Attributes
- protected[this]
- Definition Classes
- StrictOptimizedIterableOps
- Annotations
- @inline()
- final def strictOptimizedFlatMap[B, C2](b: Builder[B, C2], f: (A) => IterableOnce[B]): C2
- Attributes
- protected[this]
- Definition Classes
- StrictOptimizedIterableOps
- Annotations
- @inline()
- final def strictOptimizedFlatten[B, C2](b: Builder[B, C2])(implicit toIterableOnce: (A) => IterableOnce[B]): C2
- Attributes
- protected[this]
- Definition Classes
- StrictOptimizedIterableOps
- Annotations
- @inline()
- final def strictOptimizedMap[B, C2](b: Builder[B, C2], f: (A) => B): C2
- Attributes
- protected[this]
- Definition Classes
- StrictOptimizedIterableOps
- Annotations
- @inline()
- final def strictOptimizedZip[B, C2](that: IterableOnce[B], b: Builder[(A, B), C2]): C2
- Attributes
- protected[this]
- Definition Classes
- StrictOptimizedIterableOps
- Annotations
- @inline()
- def stringPrefix: String
- Attributes
- protected[this]
- Definition Classes
- Iterable
- Annotations
- @deprecatedOverriding()
- def sum[B >: A](implicit num: Numeric[B]): B
- Definition Classes
- IterableOnceOps
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tail: PriorityQueue[A]
- Definition Classes
- IterableOps
- def tails: Iterator[PriorityQueue[A]]
- Definition Classes
- IterableOps
- def take(n: Int): PriorityQueue[A]
- Definition Classes
- IterableOps → IterableOnceOps
- def takeRight(n: Int): PriorityQueue[A]
- Definition Classes
- StrictOptimizedIterableOps → IterableOps
- def takeWhile(p: (A) => Boolean): PriorityQueue[A]
- Definition Classes
- IterableOps → IterableOnceOps
- def tapEach[U](f: (A) => U): PriorityQueue[A]
- Definition Classes
- StrictOptimizedIterableOps → IterableOps → IterableOnceOps
- def to[C1](factory: Factory[A, C1]): C1
- Definition Classes
- IterableOnceOps
- def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]
- Definition Classes
- IterableOnceOps
- final def toBuffer[B >: A]: Buffer[B]
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- def toIndexedSeq: IndexedSeq[A]
- Definition Classes
- IterableOnceOps
- final def toIterable: PriorityQueue.this.type
- Definition Classes
- Iterable → IterableOps
- def toList: List[A]
Converts this priority queue to a list.
Converts this priority queue to a list. Note: the order of elements is undefined.
- returns
a list containing all elements of this priority queue.
- Definition Classes
- PriorityQueue → IterableOnceOps
- def toMap[K, V](implicit ev: <:<[A, (K, V)]): Map[K, V]
- Definition Classes
- IterableOnceOps
- def toQueue: Queue[A]
Returns a regular queue containing the same elements.
Returns a regular queue containing the same elements. Note: the order of elements is undefined.
- def toSeq: Seq[A]
- Definition Classes
- IterableOnceOps
- def toSet[B >: A]: Set[B]
- Definition Classes
- IterableOnceOps
- def toString(): String
Returns a textual representation of a queue as a string.
Returns a textual representation of a queue as a string.
- returns
the string representation of this queue.
- Definition Classes
- PriorityQueue → Iterable → AnyRef → Any
- def toVector: Vector[A]
- Definition Classes
- IterableOnceOps
- def transpose[B](implicit asIterable: (A) => Iterable[B]): Iterable[Iterable[B]]
- Definition Classes
- IterableOps
- def unzip[A1, A2](implicit asPair: (A) => (A1, A2)): (Iterable[A1], Iterable[A2])
- Definition Classes
- StrictOptimizedIterableOps → IterableOps
- def unzip3[A1, A2, A3](implicit asTriple: (A) => (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])
- Definition Classes
- StrictOptimizedIterableOps → IterableOps
- def view: View[A]
- Definition Classes
- IterableOps
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withFilter(p: (A) => Boolean): WithFilter[A, [_]Iterable[_]]
- Definition Classes
- IterableOps
- def writeReplace(): AnyRef
- Attributes
- protected[this]
- def zip[B](that: IterableOnce[B]): Iterable[(A, B)]
- Definition Classes
- StrictOptimizedIterableOps → IterableOps
- def zipAll[A1 >: A, B](that: Iterable[B], thisElem: A1, thatElem: B): Iterable[(A1, B)]
- Definition Classes
- IterableOps
- def zipWithIndex: Iterable[(A, Int)]
- Definition Classes
- StrictOptimizedIterableOps → IterableOps → IterableOnceOps
Deprecated Value Members
- def ++:[B >: A](that: IterableOnce[B]): Iterable[B]
- Definition Classes
- IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use ++ instead of ++: for collections of type Iterable
- final def +=(elem1: A, elem2: A, elems: A*): PriorityQueue.this.type
- Definition Classes
- Growable
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use
++=
akaaddAll
instead of varargs+=
; infix operations with an operand of multiple args will be deprecated
- final def /:[B](z: B)(op: (B, A) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use foldLeft instead of /:
- final def :\[B](z: B)(op: (A, B) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use foldRight instead of :\
- def aggregate[B](z: => B)(seqop: (B, A) => B, combop: (B, B) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0)
aggregate
is not relevant for sequential collections. UsefoldLeft(z)(seqop)
instead.
- def companion: IterableFactory[[_]Iterable[_]]
- Definition Classes
- IterableOps
- Annotations
- @deprecated @deprecatedOverriding() @inline()
- Deprecated
(Since version 2.13.0) Use iterableFactory instead
- final def copyToBuffer[B >: A](dest: Buffer[B]): Unit
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use
dest ++= coll
instead
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
- def hasDefiniteSize: Boolean
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)
- def orderedCompanion: PriorityQueue.type
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
PriorityQueue
instead
- final def repr: PriorityQueue[A]
- Definition Classes
- IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use coll instead of repr in a collection implementation, use the collection value itself from the outside
- def seq: PriorityQueue.this.type
- Definition Classes
- Iterable
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Iterable.seq always returns the iterable itself
- final def toIterator: Iterator[A]
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .iterator instead of .toIterator
- final def toStream: Stream[A]
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .to(LazyList) instead of .toStream
- final def toTraversable: Traversable[A]
- Definition Classes
- IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use toIterable instead
- def view(from: Int, until: Int): View[A]
- Definition Classes
- IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .view.slice(from, until) instead of .view(from, until)