peek property
E
peek
Returns the last/largest value from this heap.
Implementation
E get peek {
_checkNotEmpty();
return _values[0];
}
Returns the last/largest value from this heap.
E get peek {
_checkNotEmpty();
return _values[0];
}