Hoogle Search
Within LTS Haskell 24.37 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
toList :: MKMap k v -> [(NonEmpty k, v)]yarn-lock Data.MultiKeyedMap Convert the map to a list of key/value pairs.
fromList :: (a -> a -> Ordering) -> (a -> Val) -> [a] -> FTree aFenwickTree Data.Tree.Fenwick Creates a tree from a list and helper functions: compare, and value.
toFreqList :: FTree a -> [(Double, a)]FenwickTree Data.Tree.Fenwick Extract a sorted list of cumulative sums, and corresponding objects from the tree.
-
FenwickTree Data.Tree.Fenwick Extract a sorted list of inserted values from the tree.
fromAscList :: (Interval k e, Eq k) => [(k, v)] -> IntervalMap k vIntervalMap Data.IntervalMap.Generic.Lazy O(n). Build a map from an ascending list in linear time. The precondition (input list is ascending) is not checked.
fromAscListWith :: (Interval k e, Eq k) => (a -> a -> a) -> [(k, a)] -> IntervalMap k aIntervalMap Data.IntervalMap.Generic.Lazy O(n). Build a map from an ascending list in linear time with a combining function for equal keys. The precondition (input list is ascending) is not checked.
fromAscListWithKey :: (Interval k e, Eq k) => (k -> a -> a -> a) -> [(k, a)] -> IntervalMap k aIntervalMap Data.IntervalMap.Generic.Lazy O(n). Build a map from an ascending list in linear time with a combining function for equal keys. The precondition (input list is ascending) is not checked.
fromDistinctAscList :: Interval k e => [(k, v)] -> IntervalMap k vIntervalMap Data.IntervalMap.Generic.Lazy O(n). Build a map from an ascending list of elements with distinct keys in linear time. The precondition is not checked.
fromList :: (Interval k e, Ord k) => [(k, v)] -> IntervalMap k vIntervalMap Data.IntervalMap.Generic.Lazy O(n log n). Build a map from a list of key/value pairs. See also fromAscList. If the list contains more than one value for the same key, the last value for the key is retained.
fromListWith :: (Interval k e, Ord k) => (a -> a -> a) -> [(k, a)] -> IntervalMap k aIntervalMap Data.IntervalMap.Generic.Lazy O(n log n). Build a map from a list of key/value pairs with a combining function. See also fromAscListWith.