Skip to main content

algorithms.heapsort

Standard library Module View source
function heap_sort_array
heap_sort_array[T: type, S: type](collection: Ptr[T], size: int, keyf: CallableTrait[([T], S)])
function heap_sort_inplace
heap_sort_inplace[T: type, S: type](collection: List[T], keyf: CallableTrait[([T], S)])
function heap_sort
heap_sort[T: type, S: type](collection: List[T], keyf: CallableTrait[([T], S)]) -> List[T]