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. last :: forall (f :: Type -> Type) a . ViewR f => T f a -> a

    non-empty Data.NonEmpty.Mixed

    No documentation available.

  2. last :: MonoFoldable mono => NonNull mono -> Element mono

    mono-traversable Data.NonNull

    Return the last element of a monomorphic container. Safe version of lastEx, only works on monomorphic containers wrapped in a NonNull.

  3. last :: HasCallStack => ByteString -> Word8

    rio RIO.ByteString.Lazy.Partial

    O(n/c) Extract the last element of a ByteString, which must be finite and non-empty. This is a partial function, consider using unsnoc instead.

  4. last :: HasCallStack => ByteString -> Word8

    rio RIO.ByteString.Partial

    O(1) Extract the last element of a ByteString, which must be finite and non-empty. An exception will be thrown in the case of an empty ByteString. This is a partial function, consider using unsnoc instead.

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

    rio RIO.List.Partial

    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
    

  6. last :: NonEmpty a -> a

    rio RIO.NonEmpty

    Extract the last element of the stream.

  7. last :: HasCallStack => Text -> Char

    rio RIO.Text.Lazy.Partial

    O(n/c) Returns the last character of a Text, which must be non-empty. This is a partial function, consider using unsnoc instead.

  8. last :: HasCallStack => Text -> Char

    rio RIO.Text.Partial

    O(1) Returns the last character of a Text, which must be non-empty. This is a partial function, consider using unsnoc instead.

  9. last :: Vector a -> a

    rio RIO.Vector.Boxed.Partial

    No documentation available.

  10. last :: Vector v a => v a -> a

    rio RIO.Vector.Partial

    No documentation available.

Page 8 of many | Previous | Next