Documentation

Init.Data.Array.InsertionSort

@[inline]
def Array.insertionSort {α : Type u_1} (xs : Array α) (lt : ααBool := by exact (· < ·)) :

Sorts an array using insertion sort.

The optional parameter lt specifies an ordering predicate. It defaults to LT.lt, which must be decidable to be used for sorting.

Equations
Instances For