HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulevector-algorithms-0.9.1.0Haskell2010

Data.Vector.Algorithms.Insertion

A simple insertion sort. Though it's O(n^2), its iterative nature can be beneficial for small arrays. It is used to sort small segments of an array by some of the more heavy-duty, recursive algorithms.

  • 1 type
  • 6 values
typetype Comparison e = e -> e -> Ordering
#

A type of comparisons between two values of a given type.