Hoogle Search
Within LTS Haskell 24.34 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
sortGraph :: Components -> PackageGraph -> IO ()rpmbuild-order Distribution.RPM.Build.Order output sorted packages from a PackageGraph arrange by Components
sortBy :: (a -> a -> Ordering) -> Vector a -> Vector arrb-vector Data.RRBVector Sort the vector in ascending order according to the specified comparison function. The sort is stable, meaning the order of equal elements is preserved.
sortOn :: Ord b => (a -> b) -> Vector a -> Vector arrb-vector Data.RRBVector Sort the vector in ascending order by comparing the results of applying the key function to each element. The sort is stable, meaning the order of equal elements is preserved. sortOn f is equivalent to sortBy (comparing f), but only evaluates f once for each element.
-
shell-conduit Data.Conduit.Shell No documentation available.
-
shell-conduit Data.Conduit.Shell.PATH No documentation available.
-
sized Data.Sized Generalized version of sort. Since 0.7.0.0
sortBy :: (a -> a -> Ordering) -> Slist a -> Slist aslist Slist O(n log n). Non-overloaded version of sort.
>>> sortBy (\(a,_) (b,_) -> compare a b) $ slist [(2, "world"), (4, "!"), (1, "Hello")] Slist {sList = [(1,"Hello"),(2,"world"),(4,"!")], sSize = Size 3}Note: this function hangs on infinite slists.sortOn :: Ord b => (a -> b) -> Slist a -> Slist aslist Slist O(n log n). Sorts a list by comparing the results of a key function applied to each element. sortOn f is equivalent to sortBy (comparing f), but has the performance advantage of only evaluating f once for each element in the input list. This is called the decorate-sort-undecorate paradigm, or Schwartzian transform. Elements are arranged from lowest to highest, keeping duplicates in the order they appeared in the input.
>>> sortOn fst $ slist [(2, "world"), (4, "!"), (1, "Hello")] Slist {sList = [(1,"Hello"),(2,"world"),(4,"!")], sSize = Size 3}Note: this function hangs on infinite slists.sortWith :: Ord b => (a -> b) -> Slist a -> Slist aslist Slist O(n log n). Sorts a list by comparing the results of a key function applied to each element. Elements are arranged from lowest to highest, keeping duplicates in the order they appeared in the input.
>>> sortWith fst $ slist [(2, "world"), (4, "!"), (1, "Hello")] Slist {sList = [(1,"Hello"),(2,"world"),(4,"!")], sSize = Size 3}sortOnFirst :: PVector -> PVector -> [(Double, Double)]srtree Algorithm.SRTree.ConfidenceIntervals No documentation available.