Hoogle Search

Within LTS Haskell 24.18 (ghc-9.10.3)

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

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

    LambdaHack Game.LambdaHack.Core.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
    

  2. last :: NonEmpty a -> a

    cabal-install-solver Distribution.Solver.Compat.Prelude

    Extract the last element of the stream.

  3. last :: [a] -> Maybe a

    incipit-base Incipit.List

    Return Just the last element of a list.

  4. last :: LRU key val -> !Maybe key

    lrucache Data.Cache.LRU.Internal

    the key of the least recently accessed entry

  5. last :: forall (m :: Type -> Type) a . Monad m => Fold m a (Maybe a)

    streamly-core Streamly.Data.Fold

    Deprecated: Please use latest instead.

  6. last :: Unbox a => Array a -> Maybe a

    streamly-core Streamly.Internal.Data.Array

    >>> last arr = Array.getIndexRev arr 0
    
    Pre-release

  7. last :: forall (m :: Type -> Type) a . Monad m => Fold m a (Maybe a)

    streamly-core Streamly.Internal.Data.Fold

    Deprecated: Please use latest instead.

  8. last :: Monad m => Stream m a -> m (Maybe a)

    streamly-core Streamly.Internal.Data.Stream

    No documentation available.

  9. last :: Monad m => StreamK m a -> m (Maybe a)

    streamly-core Streamly.Internal.Data.StreamK

    Extract the last element of the stream, if any.

  10. last :: (HasCallStack, Monad m) => Stream m a -> m a

    vector-stream Data.Stream.Monadic

    Last element of the Stream or error if empty

Page 15 of many | Previous | Next