Hoogle Search

Within LTS Haskell 24.3 (ghc-9.10.2)

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

  1. Last :: Position position

    yesod-page-cursor Yesod.Page

    No documentation available.

  2. Last :: Channel

    alsa-mixer Sound.ALSA.Mixer

    No documentation available.

  3. Last :: a -> List1 a

    folds Data.Fold.Internal

    No documentation available.

  4. newtype Last a

    verset Verset

    Beware that Data.Semigroup.Last is different from Data.Monoid.Last. The former simply returns the last value, so x <> Data.Semigroup.Last Nothing = Data.Semigroup.Last Nothing. The latter returns the last non-Nothing, thus x <> Data.Monoid.Last Nothing = x.

    Examples

    >>> Last 0 <> Last 10
    Last {getLast = 10}
    
    >>> sconcat $ Last 1 :| [ Last n | n <- [2..]]
    Last {getLast = * hangs forever *
    

  5. Last :: a -> Last a

    verset Verset

    No documentation available.

  6. last :: HasCallStack => [a] -> a

    base Prelude

    Extract the last element of a list, which must be finite and non-empty. WARNING: This function is partial. Consider using unsnoc instead.

    Examples

    >>> last [1, 2, 3]
    3
    
    >>> last [1..]
    * Hangs forever *
    
    >>> last []
    *** Exception: Prelude.last: empty list
    

  7. last :: HasCallStack => [a] -> a

    base Data.List

    Extract the last element of a list, which must be finite and non-empty. WARNING: This function is partial. Consider using unsnoc instead.

    Examples

    >>> last [1, 2, 3]
    3
    
    >>> last [1..]
    * Hangs forever *
    
    >>> last []
    *** Exception: Prelude.last: empty list
    

  8. last :: Foldable1 t => t a -> a

    base Data.Foldable1

    The last element of a non-empty structure.

    >>> last (1 :| [2, 3, 4])
    4
    

  9. last :: NonEmpty a -> a

    base Data.List.NonEmpty

    Extract the last element of the stream.

  10. last :: HasCallStack => [a] -> a

    base GHC.List

    Extract the last element of a list, which must be finite and non-empty. WARNING: This function is partial. Consider using unsnoc instead.

    Examples

    >>> last [1, 2, 3]
    3
    
    >>> last [1..]
    * Hangs forever *
    
    >>> last []
    *** Exception: Prelude.last: empty list
    

Page 5 of many | Previous | Next