Hoogle Search

Within LTS Haskell 24.31 (ghc-9.10.3)

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

  1. fromListWithL :: (a -> a -> a) -> [(ByteString, a)] -> Trie a

    bytestring-trie Data.Trie.Convenience

    A left-fold variant of fromListWith. Note that the arguments to the combining function are swapped: the first is the value in the trie which has been accumulated from the initial part of the list; the second argument is the "new" value from the remaining tail of the list (just like the first argument to foldl). Thus, fromListL = fromListWithL const.

  2. fromListWithL' :: (a -> a -> a) -> [(ByteString, a)] -> Trie a

    bytestring-trie Data.Trie.Convenience

    A variant of fromListWithL which applies the combining function strictly.

  3. fromListT :: forall (m :: Type -> Type) o i u . Monad m => ListT m (Maybe o) -> Pipe i o u m ()

    conduino Data.Conduino

    A source is essentially ListT producing a Maybe result. This converts a ListT to the source it encodes. See ZipSource for a wrapper over Pipe that gives the right Functor and Alternative instances.

  4. fromListWith :: Ord k => (a -> a -> a) -> [(Interval k, a)] -> IntervalMap k a

    data-interval Data.IntervalMap.Lazy

    Build a map from a list of key/value pairs with a combining function.

  5. fromListWith :: Ord k => (a -> a -> a) -> [(Interval k, a)] -> IntervalMap k a

    data-interval Data.IntervalMap.Strict

    Build a map from a list of key/value pairs with a combining function.

  6. fromListWithKey :: GCompare k2 => (forall (v :: k1) . () => k2 v -> f v -> f v -> f v) -> [DSum k2 f] -> MonoidalDMap k2 f

    dependent-monoidal-map Data.Dependent.Map.Monoidal

    O(n*log n). Build a map from a list of key/value pairs with a combining function. See also fromAscListWithKey.

  7. fromListFL :: Focus -> [a] -> Maybe (FocusList a)

    focuslist Data.FocusList

    Safely create a FocusList from a list.

    >>> fromListFL (Focus 1) ["cat","dog","goat"]
    Just (FocusList (Focus 1) ["cat","dog","goat"])
    
    >>> fromListFL NoFocus []
    Just (FocusList NoFocus [])
    
    If the Focus is out of range for the list, then Nothing will be returned.
    >>> fromListFL (Focus (-1)) ["cat","dog","goat"]
    Nothing
    
    >>> fromListFL (Focus 3) ["cat","dog","goat"]
    Nothing
    
    >>> fromListFL NoFocus ["cat","dog","goat"]
    Nothing
    
    complexity: O(n) where n is the length of the input list.

  8. fromListWith :: (Hashable k, Ord k) => (a -> a -> a) -> [(k, a)] -> Map k a

    hashmap Data.HashMap

    Create a map from a list of key/value pairs with a combining function.

  9. fromListWithKey :: (Hashable k, Ord k) => (k -> a -> a -> a) -> [(k, a)] -> Map k a

    hashmap Data.HashMap

    Build a map from a list of key/value pairs with a combining function.

  10. fromLists :: [[C]] -> Matrix C

    learn-physics Physics.Learn.QuantumMat

    Construct a matrix from a list of lists of complex numbers.

Page 59 of many | Previous | Next