Hoogle Search

Within LTS Haskell 24.6 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. dropWhileList :: ([a] -> Bool) -> [a] -> [a]

    MissingH Data.List.Utils

    Similar to dropWhile, drops elements while the func is true. The function is given the remainder of the list to examine.

  2. seqList :: [a] -> [a]

    MissingH Data.List.Utils

    Forces the evaluation of the entire list.

  3. spanList :: ([a] -> Bool) -> [a] -> ([a], [a])

    MissingH Data.List.Utils

    Similar to span, but performs the test on the entire remaining list instead of just one element. spanList p xs is the same as (takeWhileList p xs, dropWhileList p xs)

  4. takeWhileList :: ([a] -> Bool) -> [a] -> [a]

    MissingH Data.List.Utils

    Similar to takeWhile, takes elements while the func is true. The function is given the remainder of the list to examine.

  5. fromAList :: (Ord a, Ord b) => [(a, b)] -> Bimap a b

    bimap Data.Bimap

    O(n*log n). Build a map from a list of pairs. Unlike fromList, earlier pairs will take precedence over later ones. The name fromAList is a reference to Lisp-style association lists, where associations can be overridden by prepending new ones. Note that when duplicates occur in both the keys and in the values, fromList xs /= fromAList (reverse xs). However, if either contains no duplicates, then the equality holds. Version: 0.2.2

  6. fromAscPairList :: (Ord a, Ord b) => [(a, b)] -> Bimap a b

    bimap Data.Bimap

    O(n). Build a bimap from a list of pairs, where both the fst and snd halves of the list are in strictly ascending order. This precondition is checked; an invalid list will cause an error. Version: 0.2.3

  7. fromAscPairListUnchecked :: (Ord a, Ord b) => [(a, b)] -> Bimap a b

    bimap Data.Bimap

    O(n). Build a bimap from a list of pairs, where both the fst and snd halves of the list are in strictly ascending order. This precondition is not checked; an invalid list will produce a malformed bimap. Version: 0.2.3

  8. fromList :: (Ord a, Ord b) => [(a, b)] -> Bimap a b

    bimap Data.Bimap

    O(n*log n). Build a map from a list of pairs. If there are any overlapping pairs in the list, the later ones will override the earlier ones. Version: 0.2

  9. toAscList :: Bimap a b -> [(a, b)]

    bimap Data.Bimap

    O(n). Convert to a list of associated pairs, with the left-hand values in ascending order. Since pair ordering is lexical, the pairs will also be in ascending order. Version: 0.2

  10. toAscListR :: Bimap a b -> [(b, a)]

    bimap Data.Bimap

    O(n). Convert to a list of associated pairs, with the right-hand values first in the pair and in ascending order. Since pair ordering is lexical, the pairs will also be in ascending order. Version: 0.2

Page 100 of many | Previous | Next