Documentation

Init.Data.Array.QSort

@[inline]
def Array.qpartition {α : Type} [inst : Inhabited α] (as : Array α) (lt : ααBool) (lo : Nat) (hi : Nat) :
Equations
  • One or more equations did not get rendered due to their size.
def Array.qpartition.loop {α : Type} [inst : Inhabited α] (lt : ααBool) (hi : Nat) (pivot : α) (as : Array α) (i : Nat) (j : Nat) :
Equations
  • One or more equations did not get rendered due to their size.
@[inline]
def Array.qsort {α : Type} [inst : Inhabited α] (as : Array α) (lt : ααBool) (low : optParam Nat 0) (high : optParam Nat (Array.size as - 1)) :
Equations
@[specialize]
partial def Array.qsort.sort {α : Type} [inst : Inhabited α] (lt : ααBool) (as : Array α) (low : Nat) (high : Nat) :