Carp/core/Sort.carp

11 lines
253 B
Plaintext
Raw Normal View History

(defmodule Sort
(doc sort! "Perform an in-place heapsort of a given array.")
(defn sort! [arr]
(HeapSort.sort! arr))
(doc sort "Perform a heapsort in a new copy of given array.")
(defn sort [arr]
(HeapSort.sort arr))
)