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.
last :: forall (f :: Type -> Type) a . ViewR f => T f a -> anon-empty Data.NonEmpty.Mixed No documentation available.
last :: MonoFoldable mono => NonNull mono -> Element monomono-traversable Data.NonNull Return the last element of a monomorphic container. Safe version of lastEx, only works on monomorphic containers wrapped in a NonNull.
last :: HasCallStack => ByteString -> Word8rio 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.
last :: HasCallStack => ByteString -> Word8rio 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.
last :: HasCallStack => [a] -> ario 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
-
rio RIO.NonEmpty Extract the last element of the stream.
last :: HasCallStack => Text -> Charrio 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.
last :: HasCallStack => Text -> Charrio 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.
-
rio RIO.Vector.Boxed.Partial No documentation available.
last :: Vector v a => v a -> ario RIO.Vector.Partial No documentation available.