@[inline]
def
Array.qsort
{α : Type u_1}
(as : Array α)
(lt : α → α → Bool := by exact (· < ·))
(low : Nat := 0)
(high : Nat := as.size - 1)
:
Array α
Sorts an array using the Quicksort algorithm.
The optional parameter lt specifies an ordering predicate. It defaults to LT.lt, which must be
decidable to be used for sorting. Use Array.qsortOrd to sort the array according to the Ord α
instance.
The optional parameters low and high delimit the region of the array that is sorted. Both are
inclusive, and default to sorting the entire array.
Equations
- One or more equations did not get rendered due to their size.