PriorityQueue

Constructors

Link copied to clipboard
constructor(initCapacity: Int)
constructor()
constructor(comparator: Comparator<Key>?)
constructor(initCapacity: Int, comparator: Comparator<Key>?)
constructor(keys: Array<Key>)

Types

Link copied to clipboard
class HeapIterator<out Key>(comparator: Comparator<Key>?, size: Int, n: Int, pq: Array<Key?>) : Iterator<Key>

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open operator override fun iterator(): Iterator<Key>
Link copied to clipboard
fun peek(): Key
Link copied to clipboard
expect fun <T, R> Iterable<T>.pflatMap(transform: (T) -> Iterable<R>): List<R>
actual fun <T, R> Iterable<T>.pflatMap(transform: (T) -> Iterable<R>): List<R>
actual fun <T, R> Iterable<T>.pflatMap(transform: (T) -> Iterable<R>): List<R>
Link copied to clipboard
expect fun <T : Any> Iterable<T>.pforEach(transform: (T) -> Unit)
actual fun <T : Any> Iterable<T>.pforEach(transform: (T) -> Unit)
actual fun <T : Any> Iterable<T>.pforEach(transform: (T) -> Unit)
Link copied to clipboard
expect fun <T, R> Iterable<T>.pmap(transform: (T) -> R): List<R>
actual fun <T, R> Iterable<T>.pmap(transform: (T) -> R): List<R>
actual fun <T, R> Iterable<T>.pmap(transform: (T) -> R): List<R>
Link copied to clipboard
expect fun <T, R : Any> Iterable<T>.pmapNotNull(transform: (T) -> R?): List<R>
actual fun <T, R : Any> Iterable<T>.pmapNotNull(transform: (T) -> R?): List<R>
actual fun <T, R : Any> Iterable<T>.pmapNotNull(transform: (T) -> R?): List<R>
Link copied to clipboard
fun poll(): Key?
Link copied to clipboard
fun size(): Int