HORIZON HASKELLDocslts/ghc-9.14.x45dd5372026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

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.