2018-06-24 06:59:42 +03:00
|
|
|
(defmodule Sort
|
|
|
|
(doc sort! "Perform an in-place heapsort of a given array.")
|
|
|
|
(defn sort! [arr]
|
|
|
|
(HeapSort.sort! arr))
|
|
|
|
|
2018-06-26 08:38:23 +03:00
|
|
|
(doc sorted "Perform a heapsort in a new copy of given array.")
|
|
|
|
(defn sorted [arr]
|
|
|
|
(HeapSort.sorted arr))
|
|
|
|
|
|
|
|
(doc sort "Perform an in-place heapsort of a given owned array.")
|
2018-06-24 06:59:42 +03:00
|
|
|
(defn sort [arr]
|
|
|
|
(HeapSort.sort arr))
|
|
|
|
)
|
|
|
|
|
2018-06-26 10:33:01 +03:00
|
|
|
(defmodule Array
|
|
|
|
(doc sort! "Perform an in-place heapsort of a given array.")
|
|
|
|
(defn sort! [arr]
|
|
|
|
(Sort.sort! arr))
|
|
|
|
|
|
|
|
(doc sorted "Perform a heapsort in a new copy of given array.")
|
|
|
|
(defn sorted [arr]
|
|
|
|
(Sort.sorted arr))
|
|
|
|
|
|
|
|
(doc sort "Perform an in-place heapsort of a given owned array.")
|
|
|
|
(defn sort [arr]
|
|
|
|
(Sort.sort arr))
|
|
|
|
)
|