Hoogle Search
Within LTS Haskell 24.32 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
vector-algorithms Data.Vector.Algorithms.Intro Moves the least k elements in the interval [l,u) to the positions [l,k+l), sorted.
defaultSortBy :: IsSequence seq => (Element seq -> Element seq -> Ordering) -> seq -> seqmono-traversable Data.Sequences vectorSort :: (Vector v e, Ord e) => v e -> v emono-traversable Data.Sequences Sort a vector.
vectorSortBy :: Vector v e => (e -> e -> Ordering) -> v e -> v emono-traversable Data.Sequences Sort a vector using an supplied element ordering function.
unstableSort :: Ord a => Seq a -> Seq ario RIO.Seq unstableSort sorts the specified Seq by the natural ordering of its elements, but the sort is not stable. This algorithm is frequently faster and uses less memory than sort.
unstableSortBy :: (a -> a -> Ordering) -> Seq a -> Seq ario RIO.Seq A generalization of unstableSort, unstableSortBy takes an arbitrary comparator and sorts the specified sequence. The sort is not stable. This algorithm is frequently faster and uses less memory than sortBy.
gsort :: (Ord e, Vector v e) => v e -> v estatistics Statistics.Function Sort a vector.
partialSort :: (Vector v e, Ord e) => Int -> v e -> v estatistics Statistics.Function Partially sort a vector, such that the least k elements will be at the front.
-
Cabal-syntax Distribution.Compat.Graph Reverse topologically sort the nodes of a graph. Requires amortized construction of graph.
-
Cabal-syntax Distribution.Compat.Graph Topologically sort the nodes of a graph. Requires amortized construction of graph.