Hoogle Search

Within LTS Haskell 24.28 (ghc-9.10.3)

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

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

    streamly-core Streamly.Internal.Data.Array

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

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

    streamly-core Streamly.Internal.Data.Fold

    Deprecated: Please use latest instead.

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

    streamly-core Streamly.Internal.Data.Stream

    No documentation available.

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

    streamly-core Streamly.Internal.Data.StreamK

    Extract the last element of the stream, if any.

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

    vector-stream Data.Stream.Monadic

    Last element of the Stream or error if empty

  6. last :: NonEmpty a -> a

    Agda Agda.Utils.List1

    Extract the last element of the stream.

  7. last :: BinList a -> a

    binary-list Data.BinaryList

    O(log n). Get the last element of a binary list.

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

    calligraphy Calligraphy.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
    

  9. last :: forall i o u (m :: Type -> Type) . Pipe i o u m (Maybe i)

    conduino Data.Conduino.Combinators

    Get the last item emitted by a stream. To get the first item ("head"), use await or awaitSurely.

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

    dimensional Numeric.Units.Dimensional.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
    

Page 16 of many | Previous | Next