get

fun get(i: Int): Long

Return the element at the ith location in the heap array. Use for iterating over elements when the order doesn't matter. Note that the valid arguments range from 1, size.