toPriorityQueue

inline fun <T> Iterable<T>.toPriorityQueue(): PriorityQueue<T>

Returns a PriorityQueue containing all elements.

Example:

(1..10).toPriorityQueue() // [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

Since

1.1.0