Hoogle Search

Within LTS Haskell 24.4 (ghc-9.10.2)

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

  1. foldl1Elems :: (a -> a -> a) -> Array i a -> a

    base GHC.Arr

    A left fold over the elements with no starting value

  2. foldlElems :: (b -> a -> b) -> b -> Array i a -> b

    base GHC.Arr

    A left fold over the elements

  3. foldlElems' :: (b -> a -> b) -> b -> Array i a -> b

    base GHC.Arr

    A strict left fold over the elements

  4. foldl' :: forall a b . (b -> a -> b) -> b -> [a] -> b

    base GHC.List

    A strict version of foldl.

  5. foldl1 :: HasCallStack => (a -> a -> a) -> [a] -> a

    base GHC.List

    foldl1 is a variant of foldl that has no starting value argument, and thus must be applied to non-empty lists. Note that unlike foldl, the accumulated value must be of the same type as the list elements.

    >>> foldl1 (+) [1..4]
    10
    
    >>> foldl1 (+) []
    *** Exception: Prelude.foldl1: empty list
    
    >>> foldl1 (-) [1..4]
    -8
    
    >>> foldl1 (&&) [True, False, True, True]
    False
    
    >>> foldl1 (||) [False, False, True, True]
    True
    
    >>> foldl1 (+) [1..]
    * Hangs forever *
    

  6. foldl1' :: HasCallStack => (a -> a -> a) -> [a] -> a

    base GHC.List

    A strict version of foldl1.

  7. foldl' :: (a -> Word8 -> a) -> a -> ByteString -> a

    bytestring Data.ByteString

    foldl' is like foldl, but strict in the accumulator.

  8. foldl1 :: HasCallStack => (Word8 -> Word8 -> Word8) -> ByteString -> Word8

    bytestring Data.ByteString

    foldl1 is a variant of foldl that has no starting value argument, and thus must be applied to non-empty ByteStrings. An exception will be thrown in the case of an empty ByteString.

  9. foldl1' :: HasCallStack => (Word8 -> Word8 -> Word8) -> ByteString -> Word8

    bytestring Data.ByteString

    foldl1' is like foldl1, but strict in the accumulator. An exception will be thrown in the case of an empty ByteString.

  10. foldl' :: (a -> Char -> a) -> a -> ByteString -> a

    bytestring Data.ByteString.Char8

    foldl' is like foldl, but strict in the accumulator.

Page 23 of many | Previous | Next